gatsby-typescript icon indicating copy to clipboard operation
gatsby-typescript copied to clipboard

Unable to find GraphQL type definitions

Open insuusvenerati opened this issue 3 years ago • 1 comments

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.

insuusvenerati avatar Dec 02 '21 00:12 insuusvenerati

You're not targeting TypeScript files. Your pointed is looking for *.js

jimsheen avatar Dec 20 '21 11:12 jimsheen