-
Notifications
You must be signed in to change notification settings - Fork 26.1k
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
[turborepo] [turbopack] Running a NextJs app by using the --turbo flag in the TurboRepo monorepo, causes Error: Next.js package not found #56887
Comments
Hi, I tried reproducing it, but couldn't. I see you are on |
Please verify that your issue can be recreated with Why was this issue marked with the
|
Please do the following steps exactly one by one:
|
Still relevant in Next.js 14.0.1. |
Yes @wescopeland, With |
It doesn't work in an Nx monorepo with yarn. |
Same error with pnpm monorepo as well. |
I deleted my package-lock.json and node_modules that was inside my app and it worked. (You will have package-lock if you added a new app using create-next-app). I was using pnpm and next@14 |
I had the same problem, but I was able to get it running by settings the tracing root to the root of my monorepo: In the module.exports = {
experimental: {
outputFileTracingRoot: path.join(__dirname, "../../"),
},
[...]
} But maybe consider to do it only in development env, because it alters the output of the module.exports = {
experimental: {
...(process.env.NODE_ENV === "development"
? { outputFileTracingRoot: path.join(__dirname, "../") }
: null),
},
[...]
} It works perfectly for me on a pnpm monorepo. |
Thanks! @Ahn1, I can confirm this works with npm |
getting same error with bun and --turbo. Is there any workaround for it? |
This issue has been automatically closed because it wasn't verified against next@canary. If you think it was closed by accident, please leave a comment. If you are running into a similar issue, please open a new issue with a reproduction. Thank you. |
This comment has been minimized.
This comment has been minimized.
I still get this error with yarn on next 14.1 |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://codesandbox.io/s/focused-newton-8l2xcm
To Reproduce
--turbo
flaghttp://localhost:3000
on your browserInternal Server Error
Current vs. Expected behavior
Dev build and run the project must work but right after
npm run dev
and opening the browser it falls into the Server error:Full LOG
Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
Turbopack (--turbo)
Additional context
No response
The text was updated successfully, but these errors were encountered: