GoogleCloudPlatform/buildpacks

Unable to build nextjs app due to lockfile not found

Janjiran opened this issue · 1 comments

Describe the bug
When building my monorepo nextJS application, build fails on "lockfile not found" without any additional details.

project structure:

  • package.json
  • yarn.lock
  • apps/web/
    • package.json
    • no lockfile here

Additional context
I'm using Firebase App Hosting feature.
next.js 14.2.3

Did this used to work?
(Yes)
I was trying this about 3 months ago, where it was failing as well but I think that was because of the project settings, I didn't encounter this error before.

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

image

Hi, I've just tried to move the roots yarn.lock to my apps/web folder and it's picking it up. Can I maybe somehow specify to use the root yarn.lock file?

Thank you