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

Dynamic Code Evaluation not allowed in Edge Runtime #29

Open
Aralhi opened this issue May 21, 2023 · 4 comments
Open

Dynamic Code Evaluation not allowed in Edge Runtime #29

Aralhi opened this issue May 21, 2023 · 4 comments

Comments

@Aralhi
Copy link

Aralhi commented May 21, 2023

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/_lodash.snakecase@4.1.1@lodash.snakecase/index.js
./node_modules/_discord.js@14.11.0@discord.js/src/util/Transformers.js
./node_modules/_discord.js@14.11.0@discord.js/src/util/Options.js
./node_modules/_discord.js@14.11.0@discord.js/src/index.js
./node_modules/_midjourney@2.2.31@midjourney/libs/midjourney.js
./node_modules/_midjourney@2.2.31@midjourney/libs/index.js

i just fork the repo and npm run build in local.
anyone have meet this issue?

@zcpua
Copy link
Member

zcpua commented May 26, 2023

"midjourney": "^2.1.30", or "midjourney": "^2.2.33"

@Aralhi
Copy link
Author

Aralhi commented May 26, 2023

i use "midjourney": "^2.1.30", didn't work.

@zcpua
Copy link
Member

zcpua commented May 26, 2023

cat node_modules/midjourney/package.json

@zcpua
Copy link
Member

zcpua commented May 26, 2023

or
git pull & yarn install

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