Minimal Project to reproduce graphql/graphiql#3620
- Clone this repository
- Use VSCode with the
GraphQL.vscode-graphql
extension on Version0.12.1
- Run
npm install
- only open
src/main.ts
(make sure to not have thesrc/fragment.ts
open) - Use
ctrl+shift+p
and selectDeveloper: Reload Window
BarFragment
will show the ErrorUnknown fragment "BarFragment".GraphQL: Validatio
With GraphQL.vscode-graphql
extension on Version 0.9.3
it properly recognizes the fragment BarFragment
and does not show any errors.
This is not supposed to be code that actually executes gql queries, it is just a minimal project to reproduce the issue, normally i would additionally use (graphql codegen)[https://the-guild.dev/graphql/codegen] to generate typescript types for the gql queries and fragments.