GithubHelp home page GithubHelp logo

Could not resolve dependency: peerOptional class-validator@"^0.11.1 || ^0.12.0 || ^0.13.0" from @nestjs/[email protected] about mapped-types HOT 5 CLOSED

nestjs avatar nestjs commented on April 28, 2024
Could not resolve dependency: peerOptional class-validator@"^0.11.1 || ^0.12.0 || ^0.13.0" from @nestjs/[email protected]

from mapped-types.

Comments (5)

DzixxxVizlib avatar DzixxxVizlib commented on April 28, 2024 4

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

from mapped-types.

micalevisk avatar micalevisk commented on April 28, 2024 1

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

from mapped-types.

Will956 avatar Will956 commented on April 28, 2024

+1, we encounter that error because we're using @nestjs/swagger that uses @nestjs/mapped-types, full logs:

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @nestjs/[email protected]
npm WARN Found: [email protected]
npm WARN node_modules/class-validator
npm WARN   class-validator@"0.14.0" from the root project
npm WARN   2 more (@nestjs/common, @nestjs/swagger)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peerOptional class-validator@"^0.11.1 || ^0.12.0 || ^0.13.0" from @nestjs/[email protected]
npm WARN node_modules/@nestjs/mapped-types
npm WARN   @nestjs/mapped-types@"1.2.0" from @nestjs/[email protected]
npm WARN   node_modules/@nestjs/swagger
npm WARN 
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/class-validator
npm WARN   peerOptional class-validator@"^0.11.1 || ^0.12.0 || ^0.13.0" from @nestjs/[email protected]
npm WARN   node_modules/@nestjs/mapped-types
npm WARN     @nestjs/mapped-types@"1.2.0" from @nestjs/[email protected]
npm WARN     node_modules/@nestjs/swagger

please 🙏

from mapped-types.

Rosevear-AB avatar Rosevear-AB commented on April 28, 2024

Running into the same issue when trying to use the PartialType function via the NEST CLI resource generator (it uses the PartialType to help create the update DTO for the resource).

from mapped-types.

andreas-becker avatar andreas-becker commented on April 28, 2024

We do have the same issue:
image

from mapped-types.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.