Replies: 2 comments 8 replies
-
remove runtime=edge from route.ts, maybe it will work |
Beta Was this translation helpful? Give feedback.
4 replies
-
I am aslo in same situation. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Im having an error related to the error "Dynamic Code Evaluation (e.g. 'eval', 'new Function', 'WebAssembly.compile') not allowed in Edge Runtime.
Import trace for requested module:
./node_modules/mongoose/dist/browser.umd.js
./lib/models/user.model.ts
./auth.config.ts
"
Im using Next-Auth V5 and Mongoose for the development.
The issue happened when Im trying to get the User on the database.
const user = await User.findOne({ email });
// auth.config.ts
// user.model.ts
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions