amannn / next-intl

🌐 Internationalization (i18n) for Next.js
https://next-intl-docs.vercel.app
MIT License
2.58k stars 236 forks source link

Dependency issue after upgrading to Nextjs 15 and Next-Intl 3.22 #1441

Closed levipadre closed 3 weeks ago

levipadre commented 3 weeks ago

Description

Hi,

I get this error after upgrading to nextjs 15:

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: ciwf-frontend-application@0.1.0
npm error Found: next@15.0.0
npm error node_modules/next
npm error   next@"^15.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer next@"^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0" from next-intl@3.22.0
npm error node_modules/next-intl
npm error   next-intl@"^3.22.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

Verifications

Other

Operating System:
      Platform: darwin
      Arch: x64
      Version: Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:00 PDT 2024; root:xnu-10063.141.2~1/RELEASE_X86_64
    Binaries:
      Node: 18.20.4
      npm: 10.9.0
      Yarn: 1.22.19
      pnpm: 9.7.0
    Relevant Packages:
      next: 13.5.1
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.2.2
    Next.js Config:
      output: N/A

Reproduction description

Steps to reproduce:

  1. Upgrade to nextjs 15
  2. upgrade to next-intl 3.22
  3. run npm run i
  4. See error: above in the description

Expected behaviour

Running without error

amannn commented 3 weeks ago

This will be addressed in https://github.com/amannn/next-intl/pull/1443 (see the PR for details, maybe you want to wait with updating).

levipadre commented 3 weeks ago

Sorry, thanks!