-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Regression: vercel build
fails with pnpm v9.1.x on latest Vercel CLI
#11607
Comments
vercel build
fails with pnpm v9 on latest Vercel CLIvercel build
fails with pnpm v9.1.0 on latest Vercel CLI
Also running into this issue, our builds started failing somewhere today, as it's not detecting the pnpm override anymore it seems. Logs from a build ~8h ago:
Logs I'm getting now:
|
vercel build
fails with pnpm v9.1.0 on latest Vercel CLIvercel build
fails with pnpm v9.1 on latest Vercel CLI
vercel build
fails with pnpm v9.1 on latest Vercel CLIvercel build
fails with pnpm v9.1.x on latest Vercel CLI
Is this something that would likely get fixed today? My team needs to deploy something. Just wondering if I have to remove corepack, or pin the version to 9.0.4 for now instead of a newer version. |
There are two different errors here, but they look very similar. Please take note of the exact error message for mitigation options below. Note that Vercel uses specific versions of major versions of
The proper matching major version is used based on the lockfile version and the If you want the exact version specified in We're working on improving this developer experience in general, as well. pnpm error
|
We have corepack enabled & have packageManager set to 9.1.1 If I understand correctly, we should not set the engines field, because this overrules the other settings? |
@Jarrku you should be able to have it working like that. I didn't notice in your logs that corepack was already enabled. That's a separate issue. Corepack enabled, but still getting
|
It started this morning with no changes on our end. If @Jarrku doesn't get more info for you I can try to look into it on Monday. We ended up pinning our version of pnpm to 9.0.4 to match vercel for now. |
On my phone currently, but here's a deployment link Most of our projects under pexip engage are failing. I can share the root package json if that's helpful? |
Could this be a next issue? Or the fact of having a global pnpm installed along with the corepack one and next is using the global one? The reason I say that is because we have a vercel build for storybook that's not using next and it doesn't have an issue. It uses corepack and it's not failing with the same error labeled here. For now I turned off strictness of the package manager in the vercel setting for our nextjs builds. |
Actually, did this get resolved? I'm not getting the warning any longer. I just tried to disable laxness of pnpm version and it seems like it's working again. |
Doesn't seem to be solved yet, tried with the latest PNPM 9.1.3 and the issue persists. |
This isnt about a problem from pnpm. pnpm made a design decision that was challenged now by vercel and until the poll on Twitter is over I think there will be no fix on the vercel side. |
pnpm error
|
#11596 seems to have introduced a regression in https://github.com/vercel/vercel/releases/tag/vercel%4034.2.0 when building with pnpm v9.1.0
Preview build logs before (notice CLI v.34.1.10)
Preview build logs after (notice CLI v34.2.0)
package.json has
and pnpm-lock.json has
The text was updated successfully, but these errors were encountered: