-
Notifications
You must be signed in to change notification settings - Fork 8k
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
Error: Could not find a production build in the '/home/ubuntu/cal.com/apps/web/.next', works on yarn dev #4948
Comments
I think this happens due to the order. try |
Will give this a try and let you know. But when i did this previously using the order you suggest, i got TypeError: Cannot use 'in' operator to search for 'viewer.public.i18n' in undefined and hence why i tried the dev option and noticed it worked find with dev and only failed when building production |
Update: Exact same issue with your sequence @calcom/web:start: Error: Could not find a production build in the '/home/ubuntu /cal.com/apps/web/.next' directory. Try building your app with 'next build' befo re starting the production server. https://nextjs.org/docs/messages/production-s tart-no-build-id Tasks: 1 successful, 2 total error Command failed with exit code 1. Builds and says succesful, but when using yarn start it fails as above. |
Experiencing the same issue with the latest release.Any idea on how to fix this. Thanks. |
This worked out for me https://github.com/calcom/cal.com/discussions/3821 |
Sorry, but does anyone know what was in that discussion page? Running into the same issue :) |
I am not sure if this is what solved it for me, but I updated apps/web/next.config.js to have
https://nextjs.org/docs/pages/api-reference/next-config-js/typescript I read somewhere that you just need to ignore type errors. |
Found a bug? Please fill out the sections below. 👍
Issue Summary
A summary of the issue. This needs to be a clear detailed-rich summary.
Steps to Reproduce
Error: Could not find a production build in the '/home/ubuntu/cal.com/apps/web/.next' directory. Try building your app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-build-id
@calcom/web:start: at NextNodeServer.getBuildId (/home/ubuntu/cal.com/node_modules/next/dist/server/next-server.js:116:23)
@calcom/web:start: at new Server (/home/ubuntu/cal.com/node_modules/next/dist/server/base-server.js:70:29)
@calcom/web:start: at new NextNodeServer (/home/ubuntu/cal.com/node_modules/next/dist/server/next-server.js:63:9)
@calcom/web:start: at NextServer.createServer (/home/ubuntu/cal.com/node_modules/next/dist/server/next.js:140:16)
@calcom/web:start: at async /home/ubuntu/cal.com/node_modules/next/dist/server/next.js:149:31
@calcom/web:start: error Command failed with exit code 1.
@calcom/web:start: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@calcom/web:start: ERROR: command finished with error: command (apps/web) yarn run start exited (1)
command (apps/web) yarn run start exited (1)
The text was updated successfully, but these errors were encountered: