-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple versions of graphql #14
Comments
I am also getting this issue.
|
Did you try the workaround? |
@laradevitt Sorry, I forgot to mention that. Yes, used workaround and fixed the issue. |
I've also realised you've put this issue under the |
Ah, glad that worked for you.
I can see how it might be confusing but indeed this is the correct project. The problematic dependency on |
The same issue happens when using PNPM. I assume this is because of the multiple versions of graphql that are potentially stored in the global node_modules folder. The workaround didn't solve the issue, same as before. Reverting back to npm for now. |
@elias-thok Hi there. You need to delete node_modules/ and yarn.lock and install again. I'll note that in the main post. And yes, it doesn't seem to be exclusive to this module. |
@laradevitt Since I was using PNPM there is no yarn.lock but a pnpm-lock.json. Unfortunately deleting node_modules & pnpm-lock.json did not solve the issue. But npm is fine for now :-) |
@elias-thok - Of course that makes sense. Sorry, not familiar with pnpm! |
Temporarily resolve an issue with `gatsby-source-graphql-universal` dependency: birkir/gatsby-source-graphql-universal#14
* Begin Implementing SEO on Show Pages * Build Re-useable Config Context * Wrap Application in Config Context * Use New Config Context Instead of Direct Static Query * Create Simpler Method for Accessing Context in Our Application * Add Props Validation for Schemas * Move Fragments to GraphQL Root * Add Next Season Variable To Context * Remove Un-needed Index * Improve Destructuring of UseConfig Returned Data * Begin Reorganizing/ Rebuilding Schemas * Update Component To Get Gatsby Compiling * Begin Rebuilding SEO Schema Component Structure * Convert Schema to Typescript * Reorg SEO & New ESLint Configs Project for Project * Remove Errant “S” * Implement Zeit Now & Update All Dependencies * Re-lint All Project FIles * Remove Deprecated NOW Properties * Remove References to SEO — Temp * Prep For Ticket Receipt Email * Migreate Back to Netlify & Remove API Routes * Update Dependencies * Update Readme with Nerve Theatre Data * Clean Up Global Context * Fix File Import Case * Resolve GraphQL Dependency Issue + Update Dependencies Temporarily resolve an issue with `gatsby-source-graphql-universal` dependency: birkir/gatsby-source-graphql-universal#14 * Update Netlify Config with Proper Redirect Value Type * Improve Git Ignore Layout * Temporarily Resolve Broken Functionality * Update Snipcart to 3.0.11 * Remove Duplicate Plugins * Integrate Ascend ESLint Config * Remove Node Engines * Continue Typescript Migration & App Refactor + Move to CSS Variables * Continue Massive Refactor * Add Keys to SSR List items * Remove Invalid Theme Prop * Update Config Query Name * Finish Converting Legacy Components to Typescript * Temp Add Typescript Rule * Add Return Types for Site Config Query * Remove Slices from Season Type * Begin Building Link Map * Build Out Super-Dope Link Map Give us direct access to all site links/pages/shows/seasons etc. Can you feel the power? * Remove All Seasons URL from Node * Set Up Proper Link Map Fallbacks * Temporarily Fix Issue with `gatsby-source-prismic-graphql` Plugin birkir/gatsby-source-prismic-graphql#162 * Refactor Query, Type, & Component Structure * Build Poster Grid & Show Poster Component * Improve Show Poster Stylings * Update Packages To Latest * Completey Convert Codebase to better Gatsby Source Prismic - Migrating away from gatsby-source-prismic-graphql due to poor support and continued unadressed stability issues like: birkir/gatsby-source-prismic-graphql#217 birkir/gatsby-source-prismic-graphql#77 birkir/gatsby-source-prismic-graphql#162 * Upgrade to Snipcart 3.0.15
Just want to add a note on how I solved this issue. I did the workaround but it did not work until I also ran npm dedupe. Does this make sense? |
Problem
I'm not sure how this came up, I started getting the error below on my projects that depend on gatsby-source-prismic-graphql.
This indicates multiple versions of graphql which is obviously not allowed.
A couple of other issues posted in the last few days:
birkir/gatsby-source-prismic-graphql#176
gatsbyjs/gatsby#22645
Output of
yarn why graphql
:Looking at the source for the latest version of this package (3.1.11) in node_modules/ (which, weirdly, doesn't appear to be in sync with this repo), the given version for graphql is "*" which seems wrong?
Workaround
My workaround is to delete node_modules/ and yarn.lock, then add a resolution to package.json in the project root (or workspaces root if that is your set-up):
Then reinstall with
yarn
.Thanks -
Edit: Expanding on workaround.
The text was updated successfully, but these errors were encountered: