Reputation: 71
When i build standalone nextjs project I get file server.js and I try to running my server.js file and get this error
Upvotes: 7
Views: 6367
Reputation: 11
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.
Upvotes: 1
Reputation: 19
Try deleting node_modules, .cache folder and package-lock.json and run npm install again.
Upvotes: 1