gatsby-typescript
gatsby-typescript copied to clipboard
Unable to find GraphQL type definitions
Describe the bug
When using yarn v3 and gatsby-plugin-graphql-codegen, codegen warns with an error.
warn [gatsby-plugin-graphql-codegen]
Unable to find any GraphQL type definitions for the following pointers:
- /home/stiforr/Code/gatsby-project/node_modules/gatsby-*/**/*.js
To Reproduce
- clone the demo repo https://github.com/insuusvenerati/gatsby-plugin-graphql-codegen-error
- yarn install (using yarn zero install but might as well for good measure)
- run
yarn develop
Environment (please complete the relevant info):
- Ubuntu 21.10
- Gatsby version 4.2.0
- Typescript version 4.5.2
- Node version 16.3.0
Additional context Using default gatsby config with no options added to the plugin.
You're not targeting TypeScript files. Your pointed is looking for *.js