Next.js Discord

Discord Forum

Dynamic Code Evaluation

Unanswered
wWHYSOSERIOUSs posted this in #help-forum
Open in Discord
./node_modules.pnpm\sweetalert2@11.14.1\node_modules\sweetalert2\dist\sweetalert2.all.js
Dynamic Code Evaluation (e. g. 'eval', 'new Function', 'WebAssembly.compile') not allowed in Edge Runtime
Learn More: https://nextjs.org/docs/messages/edge-dynamic-code-evaluation

Import trace for requested module:
./node_modules.pnpm\sweetalert2@11.14.1\node_modules\sweetalert2\dist\sweetalert2.all.js
./utils\dynamicSweetAlert.js
./utils\helper.js
./scripts\apiMethods.js
./middleware.js

5 Replies

even after adding this to my middleware i get this
error
i only get this error on local not on vercel
why is that
?