Giter VIP home page Giter VIP logo

Comments (6)

tvogt avatar tvogt commented on August 28, 2024

this is on the api. the ui installed clear. git clone was done today.

from grand-stack-starter.

tvogt avatar tvogt commented on August 28, 2024

manual npm install graphql solves this, so the graphql dependency is to blame

from grand-stack-starter.

tvogt avatar tvogt commented on August 28, 2024

after this it fails to start:

$ npm start

> [email protected] start /Users/tom/Code/grand-stack-starter/api
> nodemon --exec babel-node src/index.js

[nodemon] 1.18.2
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `babel-node src/index.js`
/Users/tom/Code/grand-stack-starter/api/node_modules/neo4j-graphql-js/node_modules/graphql/jsutils/instanceOf.js:37
      throw new Error("Cannot use ".concat(className, " \"").concat(value, "\" from another module or realm.\n\nEnsure that there is only one instance of \"graphql\" in the node_modules\ndirectory. If different versions of \"graphql\" are the dependencies of other\nrelied on modules, use \"resolutions\" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate \"graphql\" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results."));
      ^

Error: Cannot use GraphQLObjectType "__Directive" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.

https://yarnpkg.com/en/docs/selective-version-resolutions

Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.
    at instanceOf (/Users/tom/Code/grand-stack-starter/api/node_modules/neo4j-graphql-js/node_modules/graphql/jsutils/instanceOf.js:37:13)
    at isObjectType (/Users/tom/Code/grand-stack-starter/api/node_modules/neo4j-graphql-js/node_modules/graphql/type/definition.js:93:34)
    at isNamedType (/Users/tom/Code/grand-stack-starter/api/node_modules/neo4j-graphql-js/node_modules/graphql/type/definition.js:338:32)
    at isSpecifiedScalarType (/Users/tom/Code/grand-stack-starter/api/node_modules/neo4j-graphql-js/node_modules/graphql/type/scalars.js:156:38)
    at isDefinedType (/Users/tom/Code/grand-stack-starter/api/node_modules/neo4j-graphql-js/node_modules/graphql/utilities/schemaPrinter.js:57:46)
    at Array.filter (<anonymous>)
    at printFilteredSchema (/Users/tom/Code/grand-stack-starter/api/node_modules/neo4j-graphql-js/node_modules/graphql/utilities/schemaPrinter.js:65:6)
    at printSchema (/Users/tom/Code/grand-stack-starter/api/node_modules/neo4j-graphql-js/node_modules/graphql/utilities/schemaPrinter.js:47:10)
    at addMutationsToSchema (/Users/tom/Code/grand-stack-starter/api/node_modules/neo4j-graphql-js/dist/augmentSchema.js:28:52)
    at augmentSchema (/Users/tom/Code/grand-stack-starter/api/node_modules/neo4j-graphql-js/dist/index.js:320:64)
[nodemon] app crashed - waiting for file changes before starting...


from grand-stack-starter.

johnymontana avatar johnymontana commented on August 28, 2024

This should be fixed in 29fb5d8

The problem was that one of the dependencies of grand-stack-starter, neo4j-graphql-js, was previously using a release candidate version of graphql-js which did not resolve the peer dependency requirements of the other packages. neo4j-graphql-js now uses the latest stable release of graphql-js, which should fix this problem.

Closing the issue, but please reopen if you experience the problem again.

from grand-stack-starter.

felizbits avatar felizbits commented on August 28, 2024

Why am I getting warnings if the ticket is closed yet the dependencies still need to be updated?

npm install graphql-yoga                              ✓  11  23:11:17
npm WARN deprecated [email protected]: Please migrate to https://npm.im/graphql-upload (see https://git.io/fADhl).
npm WARN [email protected] requires a peer of graphql@^0.13.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.10.5 || ^0.11.3 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.13.2 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] - 0.13.x but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] - 0.13.x but none is installed. Youmust install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] - 0.13.x but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.```

from grand-stack-starter.

johnymontana avatar johnymontana commented on August 28, 2024

@po It looks like you are installing graphql-yoga and the warnings are specific to the installation of graphql-yoga? This project does not use graphql-yoga - instead we use ApolloServer. Is there a specific use case or feature you have in mind for graphql-yoga?

You can resolve the warnings above by explicitly installing graphql:

npm install --save graphql

from grand-stack-starter.

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.