Error: Cannot find module 'stream/web'
Unanswered
Brown bear posted this in #help-forum
Brown bearOP
Hey! When upgrading from version 13.3.1 to 13.4.10 I get following error but only in my openshift paas and not locally, why?
- ready started server on 0.0.0.0:3000, url: http://localhost:3000
Error: Cannot find module 'stream/web'
Require stack:
- /usr/src/app/node_modules/next/dist/server/node-polyfill-web-streams.js
- /usr/src/app/node_modules/next/dist/server/next-server.js
- /usr/src/app/node_modules/next/dist/server/next.js
- /usr/src/app/node_modules/next/dist/server/lib/render-server.js
- /usr/src/app/node_modules/next/dist/compiled/jest-worker/processChild.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:931:15)
at /usr/src/app/node_modules/next/dist/server/require-hook.js:185:36
at Function.Module._load (internal/modules/cjs/loader.js:774:27)
at Module.require (internal/modules/cjs/loader.js:1003:19)
at require (internal/modules/cjs/helpers.js:107:18)
at Object.<anonymous> (/usr/src/app/node_modules/next/dist/server/node-polyfill-web-streams.js:6:9)
at Module._compile (internal/modules/cjs/loader.js:1114:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
at Module.load (internal/modules/cjs/loader.js:979:32)
at Function.Module._load (internal/modules/cjs/loader.js:819:12) {
type: 'Error',
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/src/app/node_modules/next/dist/server/node-polyfill-web-streams.js',
'/usr/src/app/node_modules/next/dist/server/next-server.js',
'/usr/src/app/node_modules/next/dist/server/next.js',
'/usr/src/app/node_modules/next/dist/server/lib/render-server.js',
'/usr/src/app/node_modules/next/dist/compiled/jest-worker/processChild.js'
]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! myapp@1.16.0-SNAPSHOT start: `next start`
npm ERR! Exit status 1
npm ERR!