erictik / midjourney-ui

Midjourney UI is an open source AI painting UI based on Midjourney
https://midjourney-ui.vercel.app
Apache License 2.0
343 stars 118 forks source link

Dynamic Code Evaluation not allowed in Edge Runtime #29

Open Aralhi opened 1 year ago

Aralhi commented 1 year ago

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 1 year ago

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

Aralhi commented 1 year ago

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

zcpua commented 1 year ago

cat node_modules/midjourney/package.json

zcpua commented 1 year ago

or git pull & yarn install