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
Error: Next.js requires React 18.2.0 to be installed. #41855
Comments
Just update the
Still need to rewrite the codebase, because there were breaking changes in NextJS 13. But it is another issue.
There is a simple hack from documentation |
@zdeneksvarc This does not solve the issue. I just ran through making a new next repo via create-next-app, and ran these commands:
And have the same problem.
|
I thought it was a problem on the Next.js side, but it seems to be a problem on the Firebase side, so I will close it. Thankfully, firebase-tools is working on a fix below |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
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.I understand that there is a problem with the following processing of /
node_modules/next/dist/build/webpack-config.js
It can be worked around by writing __NEXT_REACT_ROOT='true' in the .env file, but the root cause is not understand.
Expected Behavior
no error
Link to reproduction
https://github.com/revoltage-inc/tmp-nextjs/tree/v1.6.2
To Reproduce
Run npm install and deploy to Firebase with the command below.
However, please note that there are cases where deployment of Cloud Function fails.
firebase/firebase-tools#5157
The text was updated successfully, but these errors were encountered: