using react js in Chrome extension
In your manifest.json file, you can try setting
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'"
I got the answer from here. This got rid of the error for me, but I'm not knowledgeable enough about it to know about other implications, sorry.
Adding INLINE_RUNTIME_CHUNK=false
in my .env file totally fixed it for me.
For anyone coming here, Bruno's answer is more correct. Use the "production" mode. E.g. in Angular
ng build --prod