angeloocana / gatsby-plugin-i18n

Multi language routes for Gatsby
435 stars 77 forks source link

Locked dependency on 0.11.7 graphql is not compatible with latest GatsbyJS #59

Open AAverin opened 5 years ago

AAverin commented 5 years ago

I get this in my package-lock.json:

"gatsby-plugin-i18n": {
      "version": "1.0.1",
      "resolved": "https://registry.npmjs.org/gatsby-plugin-i18n/-/gatsby-plugin-i18n-1.0.1.tgz",
      "integrity": "sha512-6Cucb15sLQp9cTVgmRC34MeWVJu0a09G7LRrCNV87PgMlbS5iVUX00TwDnIUB0b+f6RUq3z5+V6/sIBIvsz8/Q==",
      "requires": {
        "folktale": "^2.0.1",
        "graphql": "^0.11.7",
        "ptz-i18n": "^1.0.0"
      },
}

Notice graphql set to 0.11.7

there is a graphql 14.1.1 coming with GatsbyJS and when I run my project with both i18n and latest gatsby I get

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.
AAverin commented 5 years ago

Looks like I grabbed the wrong version of the plugin How can I get gatsby-v2 version? Is it available on npm already?