Issue while building turborepo pnpm project

If I redeploy then it works (Without changing anything!). If a new code is pushed then it fails again. My suspicion is, it’s something to do with pnpm cache.

Here is successful build:

Build should be ok everytime.

You might be able to recreate this with latest turborepo, latest pnpm example.

Hi,

I just deployed our Turbo + Next.js starter template using pnpm and couldn’t reproduce this: Turborepo & Next.js Starter. Do you have a repro that I can take a look?

Fixed the issue by overwriting install command:

pnpm install --frozen-lockfile --store-dir=.vercel/cache/pnpm-store

@swarnava
We have a custom .npmrc , not sure it could help you reproduce this or not

auto-install-peers=true
strict-peer-dependencies=false
shared-workspace-lockfile = false