GoogleCloudPlatform / buildpacks

Builders and buildpacks designed to run on Google Cloud's container platforms
Apache License 2.0
953 stars 145 forks source link

App Hosting failed with yarn - Next JS #425

Open e-roy opened 1 week ago

e-roy commented 1 week ago

Describe the bug Using the Next.js boilerplate from https://github.com/FirebaseExtended/firebase-framework-tools/tree/main/starters/nextjs/basic, I deployed as is and worked fine. If I remove package-lock.json file and use the yarn package manager, when I push to the same repo, build fails.

app-hosting-fail

Repo can be found at https://github.com/e-roy/app-hosting-next-demo

Error appears to be thrown in this file https://github.com/GoogleCloudPlatform/buildpacks/blob/main/cmd/nodejs/firebasenextjs/main.go

e-roy commented 3 days ago

Consider also pnpm, I tested with another project and failed with the error below. pnpm is popular among the Next JS crowd.

pnpm