Next.js Discord

Discord Forum

edge runtime error when building

Unanswered
Polar bear posted this in #help-forum
Open in Discord
Polar bearOP
HEYA!

I keep running into this error when trying to npm run build

./node_modules/@babel/runtime/regenerator/index.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/@babel/runtime/regenerator/index.js
./node_modules/next-auth/react/index.js

0 Replies