Closed NotTheRealTWCH closed 2 years ago
Hi! Thanks for posting this issue! I'm not sure if you mentioned this yet, but did you run npm run build
?
Yeah I have. I don't think you can run the server without building it, am I correct?
I've tried to go through the process again so you can see what's happening. There are some errors/warnings for deprecated dependencies I believe. @bootsie123
Ah. It seems that it fails while building the site which then causes none of the expected files to be created. Thus the 404 error.
I think you're probably right with it most likely being a combination of depreciated packages along with you using a different node and npm version.
Looking further, it seems to be an issue with webpack and node 17 according to this issue. Could you try running export NODE_OPTIONS=--openssl-legacy-provider
and then building the project again?
That worked. I'm on npm version 8.5.2 and node 17.7.2 by the way.
Awesome, glad that worked for you! This reminds me, I should probably update my node version to the LTS version. I think I'm using 12 or 14 right now
Describe the bug When accessing the locally hosted website via the URL "http://localhost:3000", I get a 404 error and the HTML page displays the text, "Cannot GET /". There's a content security policy that blocks the favicon from loading, but I'm not sure if that affects the overall loading of the HTML page.
Screenshots
Desktop (please complete the following information):