Build standalone nextjs project but get Error: Failed to load resource: the server responded with a status of 404 when running server.js
Asked Answered
C

2

7

When i build standalone nextjs project I get file server.js and I try to running my server.js file and get this error

1

Chuch answered 18/1, 2023 at 8:2 Comment(0)
S
1

Try deleting node_modules, .cache folder and package-lock.json and run npm install again.

Shockheaded answered 18/1, 2023 at 8:13 Comment(0)
S
1

consider that the file in your folder should be page.js or page.jsx. and of course yk that the url should be just the file name.

Sanderson answered 15/9, 2023 at 17:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.