Could not resolve dependency: peerOptional class-validator@"^0.11.1 || ^0.12.0 || ^0.13.0" from @nestjs/mapped-types@1.2.0
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Current behavior
Unable to resolve dependency tree when installing npm i @nestjs/mapped-types
using:
- node: v18.12.1
- nest: 9.1.5
- class-validator: ^0.14.0
Minimum reproduction code
https://github.com/mnrendra/iluvcoffee
Steps to reproduce
npm i class-validator class-transformer
npm i @nestjs/mapped-types
- See error:
Expected behavior
When intalling npm i @nestjs/mapped-types
should be success with:
“class-validator”: “^0.14.0”
Package version
1.2.0
Node.js version
18.12.1
In which operating systems have you tested?
- macOS
- Windows
- Linux
Other
No response
Issue Analytics
- State:
- Created 9 months ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Could not resolve dependency error peer react@"^16.8.0
this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
Read more >Lift-off 1: Apollo Client setup - Help
I'm trying to install to /client npm install graphql @apollo/client But I get error npm ERR! code ERESOLVE npm ERR! ERESOLVE could not...
Read more >[BUG] unable to resolve dependency tree · Issue #2000 · npm/cli
I expect npm to upgrade my package. Npm says "Fix the upstream dependency conflict", but I don't see any. If npm sees a...
Read more >npm err eresolve could not resolve angular - You.com
It means you have dependency conflicts. So try running the following options one by one. Remove node_modules and package-lock.json and then run. npm...
Read more >How to Fix npm ERR ERESOLVE Unable to Resolve ...
Command:- npm config set legacy-peer-deps trueIn This Video We Will See How to Fix npm ERR ERESOLVE Unable to Resolve Dependency Tree ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@kamilmysliwiec can U trigger renovate to update that dependency? pweaseeee ❤️
that’s because the range
^0.13.0
doens’t match with the version0.14.0
due to being under v0To circumvent that you must use
class-validator@^0.13
until the next release of@nestjs/mapped-types
that updates that range