rsnext/errors/invalid-react-version.md
JJ Kasper 9995f5d518
Add checking of react versions (#6892)
* Add checking of react versions to make sure it
meets the minimum set in peerDependencies

* Simplify react check

* Update error wording

Co-Authored-By: timneutkens <tim@timneutkens.nl>

* Add err.sh

* Update test-production circleci job name

* Add react error message to next-dev-server

* Update test for new wording
2019-04-04 16:47:17 -05:00

409 B

Invalid React Version

Why This Error Occurred

You tried running next in a project with an incompatible react version. Next.js uses certain react features that when are unavailable show this error since it can't work without them.

Possible Ways to Fix It

Run npm i react@latest react-dom@latest or yarn add react@latest react-dom@latest in your project and then try running next again.