[Turbopack + Next.js] "Next.js package not found" error after monorepo changes, persists even after reverting #82693
RunyShark
started this conversation in
Turbopack Error Report
Replies: 1 comment
-
Hi, This usually happens when there's multiple lock files in the folder structure. Depending on your monorepo setup, node_modules can be hoisted, but the presence of a nested lock-file, sort of tells Next.js to look for the dependency on that lower level folder, but the dependency was hoisted by your package manager. It really depends on your setting, but this info ought to help you out. In later versions, we are adding more warnings with helpful indications as to what's happening, and possible solutions. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Description:
I’m facing a strange issue while working with a Turbopack + Next.js monorepo.
Everything was working fine until I made some configuration changes in the monorepo. Right after that, this error started appearing.
Steps I’ve tried so far:
Unfortunately, I cannot share a reproducible environment at this time.
Environment:
Versions:
Error message:
Next.js package not found
Debug info:
Steps before the error:
Additional notes:
Beta Was this translation helpful? Give feedback.
All reactions