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

Vercel deployment fails with  ERR_PNPM_OUTDATED_LOCKFILE  #445

Closed
2can opened this issue Sep 2, 2022 · 2 comments · Fixed by #458
Closed

Vercel deployment fails with  ERR_PNPM_OUTDATED_LOCKFILE  #445

2can opened this issue Sep 2, 2022 · 2 comments · Fixed by #458
Assignees
Labels
bug Something isn't working CI
Milestone

Comments

@2can
Copy link
Member

2can commented Sep 2, 2022

Summary

Vercel deployment fails with ERR_PNPM_OUTDATED_LOCKFILE  error.

The same error while:

In both cases Turborepo authentication is omitted - ie without pnpm dlx turbo login

[16:52:15.492] Cloning completed: 738.443ms
[16:52:16.271] Looking up build cache...
[16:52:16.581] Build Cache not found
[16:52:16.610] Running "vercel build"
[16:52:17.117] Vercel CLI 28.2.2
[16:52:17.575] Detected `pnpm-lock.yaml` generated by pnpm 7...
[16:52:17.621] Installing dependencies...
[16:52:18.192] Scope: all 10 workspace projects
[16:52:18.345]  ERR_PNPM_OUTDATED_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with packages/eslint-config-checkout/package.json
[16:52:18.345] 
[16:52:18.345] Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"
[16:52:18.352] Error: Command "pnpm install" exited with 1

Steps to reproduce

Using Saleor CLI

saleor storefront create
cd your-created-app
saleor storefront deploy

Using guide https://github.com/saleor/react-storefront/blob/main/docs/vercel.md
omit pnpm dlx turbo login and pnpm dlx turbo link

A link to a reproduction repository

No response

Output from envinfo

System:
    OS: macOS 12.4
    CPU: (8) arm64 Apple M1
    Memory: 81.39 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.8.0 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 8.18.0 - /opt/homebrew/bin/npm
  Browsers:
    Chrome: 104.0.5112.101
    Firefox: 103.0.2
    Safari: 15.5
pnpm -v
7.5.2
@lkostrowski
Copy link
Member

Maybe related
https://github.com/saleor/react-storefront/blob/main/turbo.json#L86

@typeofweb typeofweb self-assigned this Sep 5, 2022
@typeofweb typeofweb added bug Something isn't working CI labels Sep 5, 2022
@typeofweb typeofweb added this to the 2.0 milestone Sep 5, 2022
@typeofweb
Copy link
Contributor

This problem is unrelated to turborepo @lkostrowski. It's a matter of pnpm versions incompatibility – 7.5.2 needs to be used as 7.6.0+ introduced a breaking change.

typeofweb added a commit that referenced this issue Sep 5, 2022
Fixes #445

This change enables [Corepack on Vercel](https://vercel.com/docs/concepts/deployments/configure-a-build#corepack) by default. As a result, `pnpm@7.5.2` is always used as expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CI
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants