Replies: 5 comments 10 replies
-
remove runtime=edge from route.ts, maybe it will work |
Beta Was this translation helpful? Give feedback.
-
I am aslo in same situation. |
Beta Was this translation helpful? Give feedback.
-
I have the same problem with using
the error when running
I try to put this code in
But still not affected. Did you find any solution to this? |
Beta Was this translation helpful? Give feedback.
-
Does anyone have a solution for this one? |
Beta Was this translation helpful? Give feedback.
-
Any updates? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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