Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I don't manage to get passed this error: Could not find a production build #4

Open
sebababi opened this issue Apr 4, 2023 · 0 comments

Comments

@sebababi
Copy link

sebababi commented Apr 4, 2023

I don't manage to get passed this error: Could not find a production build

I deleted node_modules and package.json

npm i

I tried everything reated to this production build error I could find in stackoverflow, and nothing worked.

any ideas? are you experiencing the same issue?

thanks

Node.js v18.4.0
(base) MacBook-Pro:nf sebba$ yarn start
bash: yarn: command not found
(base) MacBook-Pro:nf sebba$ npm start

[email protected] start
next start

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
Error: Could not find a production build in the '/Applications/MAMP/htdocs/nearfy/nf/.next' directory. Try building your app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-build-id
at Server.readBuildId (/Applications/MAMP/htdocs/nearfy/nf/node_modules/next/dist/next-server/server/next-server.js:151:355)
at new Server (/Applications/MAMP/htdocs/nearfy/nf/node_modules/next/dist/next-server/server/next-server.js:3:120)
at NextServer.createServer (/Applications/MAMP/htdocs/nearfy/nf/node_modules/next/dist/server/next.js:1:2935)
at async /Applications/MAMP/htdocs/nearfy/nf/node_modules/next/dist/server/next.js:1:3360

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant