Code Monkey home page Code Monkey logo

Comments (2)

panworapol avatar panworapol commented on August 15, 2024

getting the following errors:

npm i [email protected]
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: @apollo/[email protected]
npm ERR! node_modules/@apollo/federation
npm ERR!   @apollo/federation@"^0.33.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @apollo/federation@"^0.29.0" from [email protected]
npm ERR! node_modules/typegraphql-nestjs
npm ERR!   typegraphql-nestjs@"0.4.0" 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/sgentile/.npm/eresolve-report.txt for a full report.

If I switch to 0.29, then it wants "@nestjs/graphql": "^8.0.2", but then it requires Conflicting peer dependency: [email protected] so it cascades down etc...

These are the defaults right with latest NestJS:

"dependencies": {
        "@apollo/federation": "^0.33.0",
        "@nestjs/common": "^8.0.0",
        "@nestjs/config": "^1.0.1",
        "@nestjs/core": "^8.0.0",
        "@nestjs/graphql": "^9.0.5",
        "@nestjs/platform-express": "^8.0.0",
        "@nestjs/swagger": "^5.1.0",
        "@nestjs/terminus": "^8.0.1",
        "@prisma/client": "^3.1.1",
        "apollo-server-express": "^3.3.0",
        "graphql": "^15.6.0",
        "reflect-metadata": "^0.1.13",
        "rimraf": "^3.0.2",
        "rxjs": "^7.2.0",
        "ts-morph": "^12.0.0"
    },

I stuck on this issues, same with you

Workaround downgrade @apollo/federation to 0.29.x to solve this but don't know how to fix that in another way

from typegraphql-nestjs.

MichalLytek avatar MichalLytek commented on August 15, 2024

Closing in favor of #32 🔒

from typegraphql-nestjs.

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.