erictik/midjourney-ui

Dynamic Code Evaluation not allowed in Edge Runtime

Aralhi opened this issue · 4 comments

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 commented

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

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

zcpua commented

cat node_modules/midjourney/package.json

zcpua commented

or
git pull & yarn install