You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with yarn run dev and go to /api/graphql path, the following error is thrown:
⨯ Error: Cannot use GraphQLNonNull "String!" 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.
Issue Description
When you run the canonical code from: https://github.com/CosmicDNA/neo4j-graphql-example-nextjs/tree/5385e091ce68004de94bda184c940e69a09c7dee,
with
yarn run dev
and go to/api/graphql
path, the following error is thrown:More details on: apollo-server-integrations/apollo-server-integration-next#200
Link to Reproduction
https://github.com/CosmicDNA/neo4j-graphql-example-nextjs/tree/5385e091ce68004de94bda184c940e69a09c7dee
Reproduction Steps
Cloning
To clone the repository run:
Installation
To install the dependencies run:
Setting database
To set the database up, rename .env.sample to .env and edit the parameters of your Neo4j database accordingly.
Starting the GraphQL server
Finally, to start the Apollo GraphQL server run:
The text was updated successfully, but these errors were encountered: