t3-oss / create-t3-turbo

Clean and simple starter repo using the T3 Stack along with Expo React Native
https://turbo.t3.gg
MIT License
4.27k stars 350 forks source link

bug: Vercel deployment failed ERR_PNPM_OUTDATED_LOCKFILE  #1059

Closed RiccardoRomagnoli closed 1 month ago

RiccardoRomagnoli commented 1 month ago

Provide environment information

System: OS: Windows 10 10.0.19045 CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz Memory: 5.28 GB / 15.89 GB Binaries: Node: 20.12.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.4 - ~\AppData\Roaming\npm\yarn.CMD npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD pnpm: 9.1.3 - ~\AppData\Local\pnpm\pnpm.EXE

Describe the bug

Build logs:

15:42:36.447 | Cloning github.com/anqalab/pitchpal (Branch: main, Commit: c895cce)
15:42:36.929 | Previous build cache not available
15:42:40.010 | Cloning completed: 3.562s
15:42:40.371 | Running "vercel build"
15:42:40.876 | Vercel CLI 34.2.3
15:42:41.040 | > Detected Turbo. Adjusting default settings...
15:42:41.315 | Detected `pnpm-lock.yaml` version 9 generated by pnpm 9
15:42:41.321 | Running "install" command: `pnpm install`...
15:42:41.856 | WARN  This project is configured to use v9.1.3 of pnpm. Your current pnpm is v9.0.4
15:42:41.871 | Scope: all 8 workspace projects
15:42:41.971 | ERR_PNPM_OUTDATED_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with apps/nextjs/package.json
15:42:41.971 |  
15:42:41.971 | 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"
15:42:41.971 |  
15:42:41.971 | Failure reason:
15:42:41.971 | specifiers in the lockfile ({"@pitchpal/api":"workspace:*","@t3-oss/env-nextjs":"^0.10.1","@tanstack/react-query":"^5.35.5","@trpc/client":"11.0.0-rc.364","@trpc/react-query":"11.0.0-rc.364","@trpc/server":"11.0.0-rc.364","geist":"^1.3.0","next":"^14.2.3","react":"18.3.1","react-dom":"18.3.1","superjson":"2.2.1","zod":"^3.23.8","@pitchpal/eslint-config":"workspace:*","@pitchpal/prettier-config":"workspace:*","@pitchpal/tsconfig":"workspace:*","@types/node":"^20.12.9","@types/react":"^18.3.2","@types/react-dom":"^18.3.0","dotenv-cli":"^7.4.2","eslint":"^9.2.0","jiti":"^1.21.0","prettier":"^3.2.5","typescript":"^5.4.5"}) don't match specs in package.json ({"@pitchpal/eslint-config":"workspace:*","@pitchpal/prettier-config":"workspace:*","@pitchpal/tsconfig":"workspace:*","@types/node":"^20.12.9","@types/react":"^18.3.2","@types/react-dom":"^18.3.0","dotenv-cli":"^7.4.2","eslint":"^9.2.0","jiti":"^1.21.0","prettier":"^3.2.5","typescript":"^5.4.5","@pitchpal/api":"workspace:*","@t3-oss/env-nextjs":"^0.10.1","@tanstack/react-query":"^5.35.5","@trpc/client":"11.0.0-rc.364","@trpc/react-query":"11.0.0-rc.364","@trpc/server":"11.0.0-rc.364","next":"^14.2.3","react":"18.3.1","react-dom":"18.3.1","superjson":"2.2.1","zod":"^3.23.8"})
15:42:41.988 | Error: Command "pnpm install" exited with 1
15:42:42.221

Link to reproduction

reproduce.com

To reproduce

deploy to vercel

Additional information

No response

dBianchii commented 1 month ago

Your lock file is out of date. Are you sure you didn't modify any packages?

You can try deleting the lock file and reinstalling

RiccardoRomagnoli commented 1 month ago

I did change packages but then runpnpm install again, so it should have been updated

RiccardoRomagnoli commented 1 month ago

fixed, actually the install command was not reaching an end because not running with privileges.