-
Notifications
You must be signed in to change notification settings - Fork 27.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
[using-inferno] Next.js 4 requires React 16 #3264
Comments
Looks like there are two things at the moment:
// TODO: Remove this in Next.js 5
if (!(/^16\./.test(reactPkg.version))) {
const message = `
Error: Next.js 4 requires React 16.
Install React 16 with:
npm remove react react-dom
npm install --save react@16 react-dom@16
`
console.error(message)
process.exit(1)
}
In attempting to test this, I realize now that this example runs a custom |
Is this already solved? |
I had issues with preact as well, before this message appeared. Next 4/5 uses |
just dug through the call stack and it's deeply enmeshed with fiber and |
can not swich react 16 to inferno, i try to clone https://github.com/zeit/next.js/tree/canary/examples/using-inferno but not work
Expected Behavior
Next.js 4 requires React 16
Current Behavior
Steps to Reproduce (for bugs)
Next.js 4 requires React 16
Context
Your Environment
The text was updated successfully, but these errors were encountered: