noovil / chrome-extension-manifestv3

11 stars 3 forks source link

Error Eval webpack #1

Closed YOUDYPARRA closed 2 years ago

YOUDYPARRA commented 2 years ago

hi, i use this but i have error: devtool: Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'". .. and i do this -> https://stackoverflow.com/questions/48047150/chrome-extension-compiled-by-webpack-throws-unsafe-eval-error, another idea? best gard thanks for read,

noovil commented 2 years ago

Hey, the link is not working. Maybe you'd like to show me a minimal working code?

YOUDYPARRA commented 2 years ago

hi again https://stackoverflow.com/questions/48047150/chrome-extension-compiled-by-webpack-throws-unsafe-eval-error eval error

and my code whitout node modules directory. please add in your test https://github.com/YOUDYPARRA/firebase-chrome-extension.git https://github.com/YOUDYPARRA/firebase-chrome-extension.git

noovil commented 2 years ago

Try changing your mode to production in webpack.config.js

pranvendra commented 2 years ago

This works for me