Skip to content
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

Compatibility with Gatsby Version 5.3 #168

Open
sfemewhy opened this issue Jan 11, 2023 · 2 comments
Open

Compatibility with Gatsby Version 5.3 #168

sfemewhy opened this issue Jan 11, 2023 · 2 comments

Comments

@sfemewhy
Copy link

I'm receiving the following error. Does the plug-in support Gatsby 5.3?
ERROR #85923 GRAPHQL.VALIDATION, There was an error in your GraphQL query: Cannot query field "allLocale" on type "Query".

Here's my config:

{
resolve: gatsby-source-filesystem,
options: {
name: locales,
path: ${__dirname}/src/locale/,
},
},
{
resolve: gatsby-plugin-react-i18next,
options: {
localeJsonSourceName: "locale",
languages: [en, de],
defaultLanguage: en,
generateDefaultLanguagePage: true,
redirect: true,
siteUrl: https://localhost:8000/, // to be overridden
i18nextOptions: {
defaultNS: "common",
debug: false,
keySeparator: false,
nsSeparator: false,
},

    excludes: ["/**/404", "/**/404.html"],
    pages: [
      {
        matchPath: "/:lang?/(.*)",
        getLanguageFromPath: true,
        languages: ["en", "de"],
      },
    ],
  },
},

@timowevel1
Copy link

Same problem here

@davideoliveri
Copy link

I am encountering the same issue with Gatsby 5.13.17 and gatsby-plugin-react-i18next 3.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants