Next.js 13 requires React 18.2.0 to be installed.

See original GitHub issue

I 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:closed
  • Created a year ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
dlipcommented, Oct 30, 2022

The issue turned out to be https://github.com/vercel/next.js/pull/42141 Until that is fixed you can add a .env.build file containing __NEXT_REACT_ROOT=true in your apps directory.

2reactions
dlipcommented, Oct 29, 2022

@AsadZahed that helps with the install errors, but not with the build in my project unfortunately

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found