-
Notifications
You must be signed in to change notification settings - Fork 337
Error "Code generation from strings disallowed" #1268
Comments
Thanks for filing - to be clear, this only happens with @xtuc do you think it's worth explicitly adding |
In my case yes. |
webpack production mode doesn't emit eval by default, but you can also configure that in devtool. I need to look into the dev things... |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. You may re-open the issue if it is still relevant. |
Hi, this bug is still ongoing. Is there a solution for this? |
|
Still facing the issue. Mode is not development, it's not set. |
馃悰 Bug Report
Reporting this as suggested by @EverlastingBugstopper : #1047 (comment)
When running Webpack with
mode: "development"
wrangler throws the error:The solution is to disable devtools this in the config:
I assume the error is thrown because Webpack is using
eval()
with the default dev tool option from what I read in this other issue:cloudflare/workers-webpack-example#1
Steps to reproduce
Use a custom Webpack config with
mode: "development"
.The text was updated successfully, but these errors were encountered: