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

Combination of Next.js and yarn not supported #475

Open
1 of 7 tasks
LukeSchlangen opened this issue Dec 6, 2024 · 0 comments
Open
1 of 7 tasks

Combination of Next.js and yarn not supported #475

LukeSchlangen opened this issue Dec 6, 2024 · 0 comments
Labels
javascript Pull requests that update Javascript code kind/bug Something isn't working

Comments

@LukeSchlangen
Copy link
Member

Describe the bug
Please provide a clear and concise description of what the bug is.

If you have a general question about how to use buildpacks, we encourage you to open a discussion topic instead

Additional context
How are you using GCP buildpacks?

  • pack and the gcr.io/buildpacks/builder
  • Cloud Functions
  • Cloud Run
  • Cloud Build
  • App Engine Standard
  • App Engine Flex
  • Firebase App Hosting

Did this used to work?
No

What language is your project primarily written in?
Node.js

Steps To Reproduce
Steps to reproduce the behavior:

  1. npx create-next-app@latest helloworld --use-yarn
  2. cd helloworld
  3. gcloud run deploy --source=. --region=us-central1

Expected behavior
Successful deployment

Actual behavior
Service Unavailable

Error: Could not find a production build in the '.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 setupFsCheck (/layers/google.nodejs.yarn/yarn_modules/node_modules/next/dist/server/lib/router-utils/filesystem.js:148:19)
    at async initialize (/layers/google.nodejs.yarn/yarn_modules/node_modules/next/dist/server/lib/router-server.js:65:23)
    at async Server.<anonymous> (/layers/google.nodejs.yarn/yarn_modules/node_modules/next/dist/server/lib/start-server.js:266:36)
@LukeSchlangen LukeSchlangen added kind/bug Something isn't working javascript Pull requests that update Javascript code labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant