ts-gql watch crashes when a query is removed
Noviny opened this issue · comments
Noviny commented
Repro:
- create a query and set it up correctly
- Start a watching server
- Delete the query that you have created
- ts-gql watch crashes
Emma Hamilton commented
Have you got a stack trace from when it crashes? I can't reproduce this
Noviny commented
Error: ENOENT: no such file or directory, unlink '/Users/noviny/Development/40k-app/__generated__/ts-gql/createABattle.ts'
Just a note, I narrowed this down to something different. The things that trigger this are:
- removing the
import
statement while watching - changing the name of the query (or mutation) while watch is running