If you are using relay to make your graphql development easier (it generates typescript types from your graphql schemas). This can make working with VSCode difficult as the IDE sometimes has a different view of the world to the latest generated version.
I have found the following extension for VSCode:
Relay for VSCode I plan to try this tomorrow to see if it helps.
This may also help testing the components that use relay: https://relay.dev/docs/guides/testing-relay-components/