#How to debug "EvalError: Code generation from strings disallowed for this context"

3 messages · Page 1 of 1 (latest)

lavish lake
#

Im aware that this is caused by eval and new Function. i moved my entire validation to https://www.npmjs.com/package/@cfworker/json-schema because i thought it was that. but it wasnt

im using worker assets with sveltekit. i checked the _workers.js but its really small and no eval or new Function there

vale plinth
#

Can you share a git repo, or the _worker.js?

unfortunately without seeing your worker, or the bundled file, the best answer I can give is that somewhere in your code there is still an eval/new Function

lavish lake