How to install Next-Intl on N15?
Answered
Himalayan posted this in #help-forum
HimalayanOP
I am trying to install next-intl in the new Next 15 project:
but I am getting this error:
npm i next-intl
but I am getting this error:
➜ npm i next-intl
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: my-app@0.1.0
npm ERR! Found: react@19.0.0-rc-02c0e824-20241028
npm ERR! node_modules/react
npm ERR! react@"19.0.0-rc-02c0e824-20241028" from the root project
npm ERR! peer react@"^18.2.0 || 19.0.0-rc-02c0e824-20241028" from next@15.0.2
npm ERR! node_modules/next
npm ERR! next@"15.0.2" from the root project
npm ERR! peer next@"^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0" from next-intl@3.23.5
npm ERR! node_modules/next-intl
npm ERR! next-intl@"*" from the root project
npm ERR! 1 more (react-dom)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.0 || ^18.0.0" from next-intl@3.23.5
npm ERR! node_modules/next-intl
npm ERR! next-intl@"*" 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.
Answered by Asian black bear
And in the meantime Jan has released an updated version that even includes the RC in the peer deps so that error shouldn't even appear anymore.
2 Replies
Asian black bear
And in the meantime Jan has released an updated version that even includes the RC in the peer deps so that error shouldn't even appear anymore.
Answer