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

bug(ci): Build issue with pnpm v8 due to incompatible lock file #51

Closed
ajitzero opened this issue Jul 31, 2023 · 1 comment · Fixed by #52
Closed

bug(ci): Build issue with pnpm v8 due to incompatible lock file #51

ajitzero opened this issue Jul 31, 2023 · 1 comment · Fixed by #52

Comments

@ajitzero
Copy link
Contributor

Problem: The build is breaking because the current pnpm lock file is not supported with pnpm v8.

You may manually pin the pnpm version to v7 temporarily if the build is urgent, but ideally, the existing lock file should be deleted and regenerated.

Discussion, with multiple solutions here: pnpm/pnpm#6307

@ajitzero
Copy link
Contributor Author

Hi @santoshyadavdev I just noticed that with #49 you have tried to downgrade the lock file from 5.4 to 5.3 instead, which could be because you may be using pnpm v7.x locally.

On Netlify, the pnpm version being used is v8, as per the public logs, so you need to install v8 locally and upgrade the lock file as a long-term fix and a short-term fix is to pin the pnpm version to v7 in Netlify manually.

I had to do this recently for my own Astro pnpm project, though my issue for the same was with Cloudflare Pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant