You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}
请问这问题如何解决?
The text was updated successfully, but these errors were encountered:
报错信息如下 :
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
}
请问这问题如何解决?
The text was updated successfully, but these errors were encountered: