Content-Length: 260690 | pFad | http://redirect.github.com/vercel/next.js/issues/75226

32 pnpm workspace package with non shared lockfile break dev mode · Issue #75226 · vercel/next.js · GitHub
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

pnpm workspace package with non shared lockfile break dev mode #75226

Open
LukasGerm opened this issue Jan 23, 2025 · 5 comments
Open

pnpm workspace package with non shared lockfile break dev mode #75226

LukasGerm opened this issue Jan 23, 2025 · 5 comments
Labels
linear: turbopack Confirmed issue that is tracked by the Turbopack team. Package Managers Related to package managers (npm, yarn, pnpm, bun). Turbopack Related to Turbopack with Next.js.

Comments

@LukasGerm
Copy link

Link to the code that reproduces this issue

https://github.com/LukasGerm/pnpm-next-test

To Reproduce

  1. pnpm i
  2. Go into the packages/test-package and run pnpm build
  3. Go to apps/my-app and run pnpm dev

Current vs. Expected behavior

Observe that

Image

Expected would be that this works. Building the application works btw.

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:06:57 PDT 2024; root:xnu-11215.41.3~3/RELEASE_ARM64_T6041
  Available memory (MB): 24576
  Available CPU cores: 12
Binaries:
  Node: 20.9.0
  npm: 10.1.0
  Yarn: N/A
  pnpm: 9.15.4
Relevant Packages:
  next: 15.1.6 // Latest available version is detected (15.1.6).
  eslint-config-next: 15.1.6
  react: 19.0.0
  react-dom: 19.0.0
  typescript: 5.7.3
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Turbopack

Which stage(s) are affected? (Select all that apply)

next dev (local)

Additional context

I also tested without turbopack, but the same issue

@github-actions github-actions bot added the Turbopack Related to Turbopack with Next.js. label Jan 23, 2025
@LukasGerm
Copy link
Author

For some reason I wrote that I had the same issue without turbopack. But seems if I remove the flag it's fixed

@DaltonPelkey
Copy link

DaltonPelkey commented Jan 24, 2025

Same exact issue here. Pnpm monorepo using turborepo with shared-workspace-lockfile=false. Running the dev server results in failed module resolutions from my monorepo packages, and only when appending the --turbopack flag.

@samcx samcx added Package Managers Related to package managers (npm, yarn, pnpm, bun). Turbopack Related to Turbopack with Next.js. linear: turbopack Confirmed issue that is tracked by the Turbopack team. and removed Turbopack Related to Turbopack with Next.js. labels Jan 28, 2025
@samcx
Copy link
Member

samcx commented Jan 28, 2025

@LukasGerm Thank you for submitting an issue!

I was able to replicate the issue. I have shared this with the team!

@LukasGerm
Copy link
Author

off-topic: This also breaks vercel builds. When I try deploying something with cache, it breaks the deployment. Only when I redeploy without cache, it works.

Error message:

Lockfile is up to date, resolution step is skipped
Already up to date
undefined
/vercel/path0/packages/test-package:
ENOENT ENOENT: no such file or directory, open '/vercel/.local/share/pnpm/store/v3/files/f3/83154a33041cff854113f2de95fdb13555fc83487b1ef5b3d4cbd869b9146fd61b54aa5de2b267493bfdb958ff815d3b3235d82072d6f19ce2883f7aeb347f-index.json'

Error: Command "pnpm install" exited with 254

@samcx

@samcx
Copy link
Member

samcx commented Feb 13, 2025

@LukasGerm This is likely a separate configuration issue (your configuration on Vercel) since the issue above is related to Turbopack, which only runs on next dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear: turbopack Confirmed issue that is tracked by the Turbopack team. Package Managers Related to package managers (npm, yarn, pnpm, bun). Turbopack Related to Turbopack with Next.js.
Projects
None yet
Development

No branches or pull requests

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://redirect.github.com/vercel/next.js/issues/75226

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy