Skip to content
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

NextJS 15 support #1248

Closed
mp3por opened this issue Aug 11, 2024 · 2 comments
Closed

NextJS 15 support #1248

mp3por opened this issue Aug 11, 2024 · 2 comments
Labels
area: integrations enhancement New feature or request

Comments

@mp3por
Copy link

mp3por commented Aug 11, 2024

Is your feature request related to a problem? Please describe.

I am using NextJS RC.0 with NextIntl 3.17.2. Everything works as expected so far.

However - due to dependency specifications I get the following error when I try to install things (ex: npx shadcn-ui@latest add avatar):

Command failed with exit code 1: npm install @radix-ui/react-avatar
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: next-intl@3.17.2
npm ERR! Found: next@15.0.0-rc.0
npm ERR! node_modules/next
npm ERR!   peer next@"^14.0.0 || ^15.0.0-rc.0" from next-firebase-auth-edge@1.7.0-canary.6
npm ERR!   node_modules/next-firebase-auth-edge
npm ERR!     next-firebase-auth-edge@"^1.7.0-canary.6" from the root project
npm ERR!   next@"15.0.0-rc.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer next@"^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0" from next-intl@3.17.2
npm ERR! node_modules/next-intl
npm ERR!   next-intl@"^3.17.2" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: next@14.2.5
npm ERR! node_modules/next
npm ERR!   peer next@"^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0" from next-intl@3.17.2
npm ERR!   node_modules/next-intl
npm ERR!     next-intl@"^3.17.2" 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! /Users/velinkerkov/.npm/_logs/2024-08-11T08_03_31_829Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /Users/velinkerkov/.npm/_logs/2024-08-11T08_03_31_829Z-debug-0.log

Describe the solution you'd like

Please specify through the dependencies that this package works with NextJS RC.0.

Describe alternatives you've considered

When I am installing packages I use --legacy-peer-deps until this is fixed.

@mp3por mp3por added enhancement New feature or request unconfirmed Needs triage. labels Aug 11, 2024
@amannn
Copy link
Owner

amannn commented Aug 16, 2024

Adding React RC versions to peerDependencies is unfortunately not that straightforward: https://x.com/phry/status/1811070395879149682.

I think for now the best option is to use --legacy-peer-deps and bump the peer dependency version once React 19 stable is out.

@amannn amannn removed the unconfirmed Needs triage. label Aug 16, 2024
@amannn
Copy link
Owner

amannn commented Aug 27, 2024

I'm going to close this in favor of #1075

@amannn amannn closed this as completed Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: integrations enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants