#Consistent NPM install error

9 messages · Page 1 of 1 (latest)

dawn wave
#

I am getting the following error on any NPM install with Next 15 (using React 19). Previous version of Next.js with React 18 do not have this issue. Do I just have to use the --legacy-peer-deps or is there some other issue that can be addressed? I was under the impression that this version of Mantine was compatible with React 19.

Error:

npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error   react@"19.0.0-rc-66855b96-20241106" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^18.x || ^19.x" from @mantine/[email protected]
npm error node_modules/@mantine/hooks
npm error   @mantine/hooks@"^7.14.1" from the root project
npm error   peer @mantine/hooks@"7.14.1" from @mantine/[email protected]
npm error   node_modules/@mantine/core
npm error     @mantine/core@"^7.14.1" from the root project
silk fog
#

It is because Mantine does not yet officially support React 19. It will once the stable release is out.

Yes you can just use legacy peer deps arg

spiral torrent
dawn wave
#

perhaps this specific version of React 19?

#

does the 19.x include the rc that is appended to the version?

spice yew
#

Did you figure out this issue? I was interested in trying to upgrade to react19

dawn wave
#

Nope, still have to use --legacy-peer-deps

#

My guess is the React version. Perhaps 19 works but not this specific version of it. I haven't tested that theory yet.

agile reef