Error: Cannot find module 'stream/web', when deployment through cpanel
Answered
Yann posted this in #help-forum
YannOP
I'm currently experiencing the error of "Cannot find module 'stream/web'". This is probably because 'stream/web' isn't available in the folder or isn't sourced properly. The question in the foreground is why is this only appearing when I'm deploying the website on cpanel publicly and not on my local host. The method I used to transform my local code to usable public code is the following https://medium.com/@geevadon/how-to-deploy-a-next-js-app-on-cpanel-efficiently-c00c5eb860de. Does somebody know how to fix it? Here's my code without the next.js file: https://github.com/Turboyann/My-nextjs. I'm hosting my own domain on namecheap(cpanel)
12 Replies
@Ray next 14 require node version >= 18.17
YannOP
Ray it's people like you that make living worthwhile. Thank you very much.
@Yann Ray it's people like you that make living worthwhile. Thank you very much.
np, have your issue been solved?
YannOP
Not yet, so far I've came to understand that my current host namecheap(cpanel) isn't able to render next.js pages properly therefore I have now requested a refund and will look elsewhere for a more fitting host. If you have any recommendations that are cheap I'd be happy to hear more.
YannOP
apparently not
these are all of my options.
@Yann these are all of my options.
you don't want to host on vercel?
YannOP
first time hosting a website so I just bought the first thing I found. Is it free and do you have a guide?
YannOP
AIN'T NO WAY IT WAS THAT SIMPLE
many thanks mate it worked like a charm