Turbopack Error: Next.js package not found #78498
Closed
hqw567
started this conversation in
Turbopack Error Report
Replies: 1 comment 1 reply
-
In a Turborepo-powered monorepo, running the Next.js app with Turbopack (via next dev --turbopack) will fail with a “Next.js package not found” error if there is a pnpm-lock.yaml file inside that app’s directory (e.g. apps/web/pnpm-lock.yaml). Removing the stray pnpm-lock.yaml from apps/web immediately resolves the issue. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In a Turborepo-powered monorepo, running the Next.js app with Turbopack (via next dev --turbopack) will fail with a “Next.js package not found” error if there is a pnpm-lock.yaml file inside that app’s directory (e.g. apps/web/pnpm-lock.yaml). Removing the stray pnpm-lock.yaml from apps/web immediately resolves the issue.
Turbopack version:
fa536cf2
Error message:
Beta Was this translation helpful? Give feedback.
All reactions