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

Turbopack can't resolve local/linked packages #75353

Closed
migueldamota opened this issue Jan 27, 2025 · 2 comments
Closed

Turbopack can't resolve local/linked packages #75353

migueldamota opened this issue Jan 27, 2025 · 2 comments
Labels
Turbopack Related to Turbopack with Next.js.

Comments

@migueldamota
Copy link
Contributor

migueldamota commented Jan 27, 2025

Link to the code that reproduces this issue

https://github.com/migueldamota/next-issue-local-pkg

To Reproduce

  1. Start app with bun dev or next dev --turbopack
  2. Get an error resolving "test-pkg"

Current vs. Expected behavior

Current:
Image

Expected:
It should find the expected packages since it is defined in node_modules especially when linked via bun link

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:22 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6041
  Available memory (MB): 49152
  Available CPU cores: 12
Binaries:
  Node: 23.6.0
  npm: 10.9.2
  Yarn: N/A
  pnpm: 8.15.7
Relevant Packages:
  next: 15.2.0-canary.27 // Latest available version is detected (15.2.0-canary.27).
  eslint-config-next: N/A
  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

When running via webpack it is resolving the package fine either via file: or link:

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

Quick note, the screenshot shows version 15.2.0-canary.19. However, I also tested it with latest canary

@samcx
Copy link
Member

samcx commented Jan 28, 2025

@migueldamota Likely a duplicate of this → #75226

@samcx samcx closed this as completed Jan 28, 2025
@samcx samcx added Package Managers Related to package managers (npm, yarn, pnpm, bun). and removed Package Managers Related to package managers (npm, yarn, pnpm, bun). labels Jan 28, 2025
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