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
I was trying to configure this plugin in a Gatsby v2 website and received this message:
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.
And then...
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.
Error: Cannot use GraphQLObjectType "SitePageConnection" 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.
I'm not sure how to use the selective version resolution. In the documentation they say to add a resolutions field in package.json and then run npm install. This is what I tried (with no luck).
I was trying to configure this plugin in a Gatsby v2 website and received this message:
And then...
Here is what I did:
Created a
Search
React component and copy-pasted the code available inthe Consuming your site section.
Updated
gatsby-config.js
as explained here.I'm not sure how to use the selective version resolution. In the documentation they say to add a resolutions field in
package.json
and then runnpm install
. This is what I tried (with no luck).Have I misunderstood how to use this plugin or this behavior is due to changes in Gatsby v2?
The text was updated successfully, but these errors were encountered: