question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

Is 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
    Screenshot 2022-12-11 at 11 44 32 PM

Minimum reproduction code

https://github.com/mnrendra/iluvcoffee

Steps to reproduce

  1. npm i class-validator class-transformer
  2. npm i @nestjs/mapped-types
  3. See error:
    Screenshot 2022-12-11 at 11 44 32 PM

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:closed
  • Created 9 months ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
DzixxxVizlibcommented, Dec 16, 2022

@kamilmysliwiec can U trigger renovate to update that dependency? pweaseeee ❤️

1reaction
micaleviskcommented, Dec 11, 2022

that’s because the range ^0.13.0 doens’t match with the version 0.14.0 due to being under v0

To circumvent that you must use class-validator@^0.13 until the next release of @nestjs/mapped-types that updates that range

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found