Deployment with pnpm to production broken by v0 bot

When I deploy my application (using pnpm) v0 bot seems to inject a dependency “..@latest” every time I commit into my package.json and kick off a second build. First of all, this is confusing. Second of all, this causes my build to fail with the following errors:

ERR_PNPM_OUTDATED_LOCKFILE Cannot install with “frozen-lockfile” because pnpm-lock.yaml is not up to date with /package.json

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”

Failure reason:

specifiers in the lockfile don’t match specifiers in package.json:

* 1 dependencies were added: ..@latest

* 10 dependencies are mismatched:

  • @tailwindcss/postcss (lockfile: ^4.1.12, manifest: ^4.1.9)

  • react (lockfile: ^19.1.1, manifest: ^19)

  • react-dom (lockfile: ^19.1.1, manifest: ^19)

  • tailwind-merge (lockfile: ^2.6.0, manifest: ^2.5.5)

  • @types/node (lockfile: ^22.18.0, manifest: ^22)

  • @types/react (lockfile: ^19.1.12, manifest: ^19)

  • @types/react-dom (lockfile: ^19.1.9, manifest: ^19)

  • postcss (lockfile: ^8.5.6, manifest: ^8.5)

  • tailwindcss (lockfile: ^4.1.12, manifest: ^4.1.9)

  • typescript (lockfile: ^5.9.2, manifest: ^5)

When I attempt to correct my package.json to align to the manifest … no joy.
And when I switch to use –no-frozen-lockfile, I get this error:

WARN Moving .. that was installed by a different package manager to “node_modules/.ignored”

ERROR Cannot copy ‘/vercel/path0’ to a subdirectory of itself, ‘/vercel/path0/node_modules’.

pnpm: Cannot copy ‘/vercel/path0’ to a subdirectory of itself, ‘/vercel/path0/node_modules’.

at Object.checkPaths (/pnpm10/node_modules/pnpm/dist/pnpm.cjs:57767:15)

at async copy (/pnpm10/node_modules/pnpm/dist/pnpm.cjs:57874:37)

at async renameOverwrite (/pnpm10/node_modules/pnpm/dist/pnpm.cjs:58876:13)

at async safeIsInnerLink (/pnpm10/node_modules/pnpm/dist/pnpm.cjs:154534:11)

at async /pnpm10/node_modules/pnpm/dist/pnpm.cjs:154647:29

at async Promise.all (index 17)

at async partitionLinkedPackages (/pnpm10/node_modules/pnpm/dist/pnpm.cjs:154642:7)

at async toResolveImporter (/pnpm10/node_modules/pnpm/dist/pnpm.cjs:154596:37)

at async Promise.all (index 0)

at async resolveDependencies (/pnpm10/node_modules/pnpm/dist/pnpm.cjs:155152:33)

Can someone help?