graphiql: getting unknown fragment lint error
Actual Behavior
we are using Relay and after the recent updates(starting from version 0.3.23), all the fragments are getting flagged as unknown fragment.
Expected Behavior
Steps to Reproduce the Problem Or Description
Specifications
- GraphQL for VSCode Extension Version: > 0.3.23
- VSCode Version: Version: 1.61.0 (Universal)
- OS Name: Mac OS
- OS Version: Big sur 11.6.1
- graphql config filename and format example:
Logs Of TS Server || GraphQL Language Service
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 8
- Comments: 29 (18 by maintainers)
Just tested it out again a few more times since I wasn’t 100% sure it wasn’t some weird anomaly. I can confirm that the following happens (in my case at least):
I’m using this
For anyone stumbling on this issue, removing
ignoreNoDocuments: truefrom the graphql.config.js / codegen.ts file solved the issue for me.@esquevin exciting to hear!
I think I might just document this as a breaking change then. I think this will be the more
graphql-configway to do this, and help us reduce unnecessary resource churn by parsing catch-all blobs of files.Thank for your efforts anyway =) Meanwhile I’ve configured
documentsand don’t have issues anymoreI will look into this one after work tonight, sorry y’all!
I’m surprised it worked without documents configured!