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 · 2 comments
Open

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

LukasGerm opened this issue Jan 23, 2025 · 2 comments
Labels
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Turbopack Related to Turbopack with Next.js.
Projects
None yet
Development

No branches or pull requests

2 participants