Next.js 13 requires React 18.2.0 to be installed.
See original GitHub issueI can’t build a Nextjs 13 project even though i have React 18.2.0 installed. It’s new so i guess it hasn’t been tested yet. It could be related to https://github.com/vercel/next.js/issues/41855
> NX Next.js requires React 18.2.0 to be installed.
Issue Analytics
- State:
- Created a year ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Error: Next.js requires React 18.2.0 to be installed. #41855
I have React 18.2.0 installed, but I get an error Next.js requires React 18.2.0 to be installed. during build firebase.
Read more >react-version | Next.js
Your project is using an old version of react or react-dom that does not meet the suggested minimum version requirement. Next.js suggests using,...
Read more >Next.js is not recognizing '@types/react' - Stack Overflow
Please install @types/react by running: npm install --save-dev @types/react If you are not trying to use TypeScript, please remove the tsconfig.
Read more >How to Upgrade to React 18
Updates to Client Rendering APIs. When you first install React 18, you will see a warning in the console: ReactDOM.render is no longer...
Read more >No Next.js version could be detected in your project. Make sure
Docs says that the build command npm install --prefix=../.. is only required if using npm workspaces, and doesn't apply when using pnpm or...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The issue turned out to be https://github.com/vercel/next.js/pull/42141 Until that is fixed you can add a
.env.buildfile containing__NEXT_REACT_ROOT=truein your apps directory.@AsadZahed that helps with the install errors, but not with the build in my project unfortunately