Skip to content

project fails to build #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
romanpoudel opened this issue Jul 12, 2024 · 1 comment
Open

project fails to build #1

romanpoudel opened this issue Jul 12, 2024 · 1 comment

Comments

@romanpoudel
Copy link

This is the error:
Creating an optimized production build ...
Failed to compile.

./node_modules\mongoose\dist\browser.umd.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\mongoose\dist\browser.umd.js
./lib\db.ts
./auth.ts
./middleware.ts

Build failed because of webpack errors

@romanpoudel
Copy link
Author

I tried removing middleware.ts file and it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant