ayushiee / nextflix

A Netflix clone built using Next.js
https://nextflix-azure.vercel.app
315 stars 131 forks source link

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

Open sebababi opened 1 year ago

sebababi commented 1 year ago

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

netflix-clone@0.1.0 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