question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Graphql versions

See original GitHub issue

The yarn.lock file has two graphql versions in it. The latest dependencies are causing my production build web client to fail on deployment to heroku with a console logged error regarding having two graphql versions installed.

Uncaught Error: Cannot use e "__Schema" 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 r (vendor.84d87188f15089ca936a.js:51)
    at p (vendor.84d87188f15089ca936a.js:51)
    at f (vendor.84d87188f15089ca936a.js:51)
    at V (vendor.84d87188f15089ca936a.js:51)
    at W (vendor.84d87188f15089ca936a.js:51)
    at new l (vendor.84d87188f15089ca936a.js:51)
    at l (vendor.84d87188f15089ca936a.js:51)
    at Object.<anonymous> (vendor.84d87188f15089ca936a.js:51)
    at t (vendor.84d87188f15089ca936a.js:1)
    at Object.<anonymous> (index.84d87188f15089ca936a.js:1)

I also note that the latest graphql caused errors in some of my stubs for modules I’m working on which did not yet have Mutations/Subscriptions in the server schema.graphql. The empty stubs had to be removed to solve the problem as they caused type definition problems.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
larixercommented, Jan 9, 2018
1reaction
larixercommented, Jan 9, 2018

@H1net As for your second statement about the empty stubs. Yes, this is true, I have noticed this and removed empty stubs from master in the last commit: https://github.com/sysgears/apollo-universal-starter-kit/commit/c92cfae11103645cfb7ce464b2cda31afa8d4133

Read more comments on GitHub >

github_iconTop Results From Across the Web

graphql - npm
A Query Language and Runtime which can target any service.. Latest version: 16.6.0, last published: 4 months ago. Start using graphql in ...
Read more >
GraphQL Specification Versions
GraphQL. Prerelease, Working Draft, Thu, Dec 8, 2022. Latest Release, October 2021, Tue, Oct 26, 2021, Release Notes · June 2018, Sun, Jun...
Read more >
graphql package - All Versions - Pub.dev
Version Min Dart SDK Uploaded Documentation 5.1.2‑beta.6 Null safety 2.12 24 days ago 5.1.2‑beta.5 Null safety 2.12 2 months ago 5.1.2‑beta.4 Null safety 2.12 5 months...
Read more >
Releases · graphql/graphql-js - GitHub
Releases: graphql/graphql-js · v17.0.0-alpha.2 · v17.0.0-alpha.2 (2022-09-22) · v16.6.0 · v16.6.0 (2022-08-16) · v17.0.0-alpha.1 · v17.0.0-alpha.1 ( ...
Read more >
Using a different version of graphql-tools
Apollo Server includes graphql-tools version 4 by default. If you want to use a newer version, you can do so with the following...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found