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

能启动服务,但提交就报500错误,docker或本地部署都是这样 #38

Open
lauweliam opened this issue Jun 15, 2023 · 2 comments

Comments

@lauweliam
Copy link

报错信息如下 :

  • error Error: The edge runtime does not support Node.js 'http' module.
    Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime
    at (webpack-internal:///(middleware)/./node_modules/next/dist/esm/server/web/globals.js:33)
    at Object.get (webpack-internal:///(middleware)/./node_modules/next/dist/esm/server/web/globals.js:33:19)
    at eval (webpack-internal:///(middleware)/./node_modules/agent-base/dist/index.js:45:26)
    at (middleware)/./node_modules/agent-base/dist/index.js (file:///Users/weliam/study/midjourney-ui/.next/server/pages/api/imagine.js:140:1)
    at webpack_require (file:///Users/weliam/study/midjourney-ui/.next/server/edge-runtime-webpack.js:37:33)
    at fn (file:///Users/weliam/study/midjourney-ui/.next/server/edge-runtime-webpack.js:268:21)
    at eval (webpack-internal:///(middleware)/./node_modules/https-proxy-agent/dist/index.js:49:22)
    at (middleware)/./node_modules/https-proxy-agent/dist/index.js (file:///Users/weliam/study/midjourney-ui/.next/server/pages/api/imagine.js:184:1)
    at webpack_require (file:///Users/weliam/study/midjourney-ui/.next/server/edge-runtime-webpack.js:37:33)
    at fn (file:///Users/weliam/study/midjourney-ui/.next/server/edge-runtime-webpack.js:268:21)
    at eval (webpack-internal:///(middleware)/./node_modules/midjourney/libs/midjourne.api.js:10:29) {
    digest: undefined
    }

请问这问题如何解决?

@zcpua
Copy link
Member

zcpua commented Jun 15, 2023

yarn add midjourney
67a10c3

@APPX-Studio
Copy link

可以用啊 我没做二次开发,就是不能支持 描述 blender浑图模式

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

3 participants