Skip to content
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

getting **Dynamic Code Evaluation** error #398

Open
mistersingh179 opened this issue Jan 11, 2024 · 2 comments
Open

getting **Dynamic Code Evaluation** error #398

mistersingh179 opened this issue Jan 11, 2024 · 2 comments

Comments

@mistersingh179
Copy link

Hi, I am using next.js v14 with edge runtime.

I get this error on build:

Failed to compile.

./node_modules/mailgun.js/mailgun.web.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/mailgun.js/mailgun.web.js

How can this be fixed?

@nboraxxd
Copy link

Hi, can you fix it?

@nboraxxd
Copy link

take it out of the 'use server' file

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

2 participants