Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

bug(gatsby-plugin-graphql-codegen): DEFAULT_SCHEMA_KEY is not a known API #77

Closed
Jdruwe opened this issue Mar 26, 2020 · 5 comments · Fixed by #79
Closed

bug(gatsby-plugin-graphql-codegen): DEFAULT_SCHEMA_KEY is not a known API #77

Jdruwe opened this issue Mar 26, 2020 · 5 comments · Fixed by #79

Comments

@Jdruwe
Copy link

Jdruwe commented Mar 26, 2020

I get the following error when running gatsby develop:

- The plugin gatsby-plugin-graphql-codegen@2.6.0 is using the API "DEFAULT_SCHEMA_KEY" which is not a known API.

Is this an issue on my part?

@gentksb
Copy link

gentksb commented Mar 27, 2020

I faced same problem.

@ricokahler
Copy link
Collaborator

I can take a look at this tomorrow.

For awareness cc @kije

@d4rekanguok
Copy link
Owner

Ooh we need to move any non-gatsby api exports out of gatsby-node.ts. @Jdruwe @gentksb sorry about this & thank you for reporting in!

@d4rekanguok d4rekanguok pinned this issue Mar 27, 2020
@d4rekanguok d4rekanguok changed the title "DEFAULT_SCHEMA_KEY" is not a known API. bug(gatsby-plugin-graphql-codegen): DEFAULT_SCHEMA_KEY is not a known API Mar 27, 2020
@d4rekanguok
Copy link
Owner

We've fixed this in a patch:

  • gatsby-plugin-graphql-codegen@2.6.1

If you're affected by this, please upgrade to the latest version. My apologies for the inconvenience. It's my mistake to not test each plugin individually before publishing.

@Jdruwe
Copy link
Author

Jdruwe commented Mar 27, 2020

@d4rekanguok please don't apologize, you are doing amazing work with this plugin! Thx for the fix :)

@ricokahler ricokahler unpinned this issue Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants