Giter VIP home page Giter VIP logo

Comments (9)

kbrandwijk avatar kbrandwijk commented on August 21, 2024 1

I'm not sure. There used to be an issue with multiple versions of graphql being installed at the same time. That's why the advice was to always make that a peer dep and install it only once, on the actual project level. So that would mean: add them in the boilerplate.

from node-graphql-server.

stubailo avatar stubailo commented on August 21, 2024 1

OK, just looked at this and it turns out there are some very significant breaking changes in [email protected] in several areas, so basically any tool based on graphql is going to have some things to work on to upgrade.

Unfortunately, there aren't release notes yet: https://github.com/graphql/graphql-js/releases/tag/v0.12.0

We're working on fixes for graphql-tools and hopefully will be able to maintain backwards compatibility, keep track here: ardatan/graphql-tools#541

from node-graphql-server.

kbrandwijk avatar kbrandwijk commented on August 21, 2024 1

As the dependencies on the boilerplates itself are set correctly now, and also for all directly related libraries (yoga etc.), this is now out of our control.

from node-graphql-server.

schickling avatar schickling commented on August 21, 2024

That's a good point. Do you have any opinion on whether this should be resolved in the boilerplates or in graphql-yoga?

Maybe @stubailo wants to share his thoughts?

from node-graphql-server.

stubailo avatar stubailo commented on August 21, 2024

I think this is because the new 0.12 graphql version was released, so we need to update our stuff to work with that, and list that in the peer dependencies. So I think this is actually npm working as needed.

from node-graphql-server.

schickling avatar schickling commented on August 21, 2024

Thanks for looking into this @stubailo 👏

from node-graphql-server.

kbrandwijk avatar kbrandwijk commented on August 21, 2024

@stubailo If you look at the warnings, they are all for <= 0.11.x, so I don't think it has to do with that. I believe it has to do with those packages specifying graphql as a peer dependency, so the dependency needs to be added to the consuming project explicitly.

from node-graphql-server.

stubailo avatar stubailo commented on August 21, 2024

I don't currently think so - you get the same warning for a wrong version that you get for a missing package. So my current diagnosis is that people who install the boilerplate are getting graphql 0.12, since nothing would work without it, but the peerDep thing is complaining about the version.

from node-graphql-server.

masumbillah avatar masumbillah commented on August 21, 2024

May be I face in same problem.

MSs-Mac-mini:twitter-app ms$ yarn add apollo-server-express graphql-tools
yarn add v1.3.2[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning "apollo-server-express > [email protected]" has incorrect peer dependency "graphql@^0.9.0 || ^0.10.0 || ^0.11.0 || ^0
.12.0".
warning "apollo-server-express > apollo-server-core > [email protected]" has incorrect peer dependency "graphql@^0.10.0 ||
^0.11.0 || ^0.12.0".
warning "apollo-server-express > apollo-server-core > [email protected]" has incorrect peer dependency "graphql@^0.10.0 || ^0.11.
0 || ^0.12.0".
warning "apollo-server-express > apollo-server-core > [email protected]" has incorrect peer dependency "graphql@^0.10.0 || ^0.11.0 || ^0.12.0".
warning " > [email protected]" has incorrect peer dependency "graphql@^0.11.0 || ^0.12.0".
[4/4] 📃 Building fresh packages...
success Saved 2 new dependencies.
├─ [email protected]
└─ [email protected]
✨ Done in 1.92s.

from node-graphql-server.

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.