toonvanstrijp / nestjs-i18n

The i18n module for nestjs.
https://nestjs-i18n.com
Other
643 stars 108 forks source link

Not working with nest V9 #436

Closed heshaShawky closed 1 year ago

heshaShawky commented 1 year ago

I am trying to install the packing but is not working an get that error

heshamshawky@192 shafrah-api % npm install --save nestjs-i18n  
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: shafrah-api@0.0.1
npm ERR! Found: class-validator@0.14.0
npm ERR! node_modules/class-validator
npm ERR!   class-validator@"^0.14.0" from the root project
npm ERR!   peerOptional class-validator@"*" from @nestjs/common@9.2.1
npm ERR!   node_modules/@nestjs/common
npm ERR!     @nestjs/common@"^9.0.0" from the root project
npm ERR!     peer @nestjs/common@"*" from nestjs-i18n@10.2.1
npm ERR!     node_modules/nestjs-i18n
npm ERR!       nestjs-i18n@"*" from the root project
npm ERR!     5 more (@nestjs/core, @nestjs/microservices, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer class-validator@"~0.13" from nestjs-i18n@10.2.1
npm ERR! node_modules/nestjs-i18n
npm ERR!   nestjs-i18n@"*" 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! See /Users/heshamshawky/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/heshamshawky/.npm/_logs/2022-12-24T23_04_07_664Z-debug-0.log
heshamshawky@192 shafrah-api % 

NestJs and node version

heshamshawky@192 shafrah-api % npm -v
8.19.2
heshamshawky@192 shafrah-api % node -v
v18.12.1
heshamshawky@192 shafrah-api % nest -v
9.1.5
toonvanstrijp commented 1 year ago

@heshaShawky this issue is fixed in version 10.2.3 🎉