-
hello when I use the latest React19 of the Next 15 RC , I find the error here below , but it's OK in the React 18: npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! peer react@"19.0.0-rc-f994737d14-20240522" from [email protected]
npm ERR! node_modules/next
npm ERR! peer next@"^14.0.0-0 || ^15.0.0-0" from [email protected]
npm ERR! node_modules/next-auth
npm ERR! next-auth@"^5.0.0-beta.20" from the root project
npm ERR! next@"15.0.0-rc.0" from the root project
npm ERR! peer react@"^18.2.0 || ^19.0.0-0" from [email protected]
npm ERR! node_modules/next-auth
npm ERR! next-auth@"^5.0.0-beta.20" from the root project
npm ERR! 3 more (react-dom, styled-jsx, the root project)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional react@">=16.8" from [email protected]
npm ERR! node_modules/zustand
npm ERR! zustand@"4.5.5" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR! peerOptional react@">=16.8" from [email protected]
npm ERR! node_modules/zustand
npm ERR! zustand@"4.5.5" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\Administrator\AppData\Local\npm-cache\_logs\2024-08-17T10_56_00_869Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache\_logs\2024-08-17T10_56_00_869Z-debug-0.log
|
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
Aug 19, 2024
Replies: 2 comments 25 replies
-
We won't get such errors once React 19 is out. |
Beta Was this translation helpful? Give feedback.
24 replies
-
I am creating react app using vite which goes npm create vite projectName i am using zustand when make variable of zustand My UI Goes Blank why? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, React Compiler would only recognize hooks with the name. I think you can reproduce the same error without Zustand.