Graphql versions
See original GitHub issueThe 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:
- Created 6 years ago
- Comments:7 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@H1net To have one version of GraphQL used everywhere we use
resolutions
, check here: https://github.com/sysgears/apollo-universal-starter-kit/blob/c92cfae11103645cfb7ce464b2cda31afa8d4133/package.json#L229-L231@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