Next.js Discord

Discord Forum

Having problems with the deployment of next 14 website on cpanel. I'm facing the error message 503.

Answered
Yann posted this in #help-forum
Open in Discord
The problem has been updated. My host has conveyed the problem. Apparently 'stream/web' is missing. Does anyone know how to fix this? My domain is on namecheap and my host is namecheap(cpanel).
Answered by Yann
The issue was due namecheap(cpanel) not being able to render next.js before choosing a host look up it's abilites, especially when working with newer programms such as nextjs. I have now uploaded my website onto vercel without having changed any of the code.
View full answer

4 Replies

You are gonna need to provide more info. Where are you hosting? Also you need to check some logs cause that might have a clue
My domain is namecheap and the host cpanel. I've spoken to my host and he said that he received the following error code: (node:21632) UnhandledPromiseRejectionWarning: Error: Cannot find module 'stream/web'
The full error code would look like this: (node:21632) UnhandledPromiseRejectionWarning: Error: Cannot find module 'stream/web'

Require stack:

- /home/hofwjtyo/nodevenv/english/14/lib/node_modules/next/dist/compiled/@edge-runtime/primitives/load.js
- /home/hofwjtyo/nodevenv/english/14/lib/node_modules/next/dist/compiled/@edge-runtime/primitives/index.js
- /home/hofwjtyo/nodevenv/english/14/lib/node_modules/next/dist/compiled/@edge-runtime/ponyfill/index.js
- /home/hofwjtyo/nodevenv/english/14/lib/node_modules/next/dist/telemetry/storage.js
- /home/hofwjtyo/nodevenv/english/14/lib/node_modules/next/dist/server/lib/router-server.js
- /home/hofwjtyo/nodevenv/english/14/lib/node_modules/next/dist/server/lib/start-server.js
- /home/hofwjtyo/nodevenv/english/14/lib/node_modules/next/dist/server/next.js
- /home/hofwjtyo/english/server.js

- /usr/local/lsws/fcgi-bin/lsnode.js

at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)

at /home/hofwjtyo/nodevenv/english/14/lib/node_modules/next/dist/server/require-hook.js:55:36

at Function.Module._load (internal/modules/cjs/loader.js:746:27)

at Module.require (internal/modules/cjs/loader.js:974:19)

at Module.mod.require (/home/hofwjtyo/nodevenv/english/14/lib/node_modules/next/dist/server/require-hook.js:65:28)

at require (internal/modules/cjs/helpers.js:101:18)

at Object. (/home/hofwjtyo/nodevenv/english/14/lib/node_modules/next/dist/compiled/@edge-runtime/primitives/load.js:39:18)

at Module._compile (internal/modules/cjs/loader.js:1085:14)

at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)

at Module.load (internal/modules/cjs/loader.js:950:32)

(Use node --trace-warnings ... to show where the warning was created)
The issue was due namecheap(cpanel) not being able to render next.js before choosing a host look up it's abilites, especially when working with newer programms such as nextjs. I have now uploaded my website onto vercel without having changed any of the code.
Answer