I see red squiggles - How to fix type warnings in VS Code


Squiggles got you down?

Seeing them in your sleep – or in your cells – or in your types?

This can happen after creating new SDL or adding types – and VS Code or the GraphQL Extension hasn’t reloaded the changes and is a little out of sync.

Here are two quick things to try if you suspect a red … herring.

  1. Regenerate types:
yarn rw g types

Note: You may want to stop your dev server or storybook before you regenerate.

  1. Restart the GraphQL Extension


3… Reload the VSCode Developer Window


Hopefully that has reset VS code and squiggles begone!