Build error with Next.js 15 in monorepo #72899
Labels
bug
Issue was opened via the bug report template.
create-next-app
Related to our CLI tool for quickly starting a new Next.js application.
Output (export/standalone)
Related to the the output option in `next.config.js`.
Turbopack
Related to Turbopack with Next.js.
Link to the code that reproduces this issue
https://github.com/omarshehab221/DoomUI
To Reproduce
Just clone the repo and try to build the apps/template or the apps/playground (I made sure not change anything in this one from what
bun create next-app@latest
created to test the error)Current vs. Expected behavior
I was trying to build the apps/template without that much change from what
bun create next-app@latest
created. I expected it to build fine specially that it passed the optimized build and the linting phases. It throws this error in the Collecting pages data phase: "Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7B%24%24typeof%2C%20type%2C%20key%2C%20ref%2C%20props%7D for the full message or use the non-minified dev environment for full errors and additional helpful warnings."I created apps/playground and made sure not to change any of its code just to be sure the issue exists and had the same problem.
This usually doesn't happen when I'm not working in a monorepo
Provide environment information
Which area(s) are affected? (Select all that apply)
create-next-app, Output (export/standalone), Turbopack
Which stage(s) are affected? (Select all that apply)
next build (local)
Additional context
I created apps/playground and didn't change it's code just to test this
The text was updated successfully, but these errors were encountered: