Thinkmill / ts-gql

Write GraphQL queries with a gql tag in TypeScript -> have generated types

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ts-gql watch crashes when a query is removed

Noviny opened this issue · comments

Repro:

  1. create a query and set it up correctly
  2. Start a watching server
  3. Delete the query that you have created
  4. ts-gql watch crashes

Have you got a stack trace from when it crashes? I can't reproduce this

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:

  1. removing the import statement while watching
  2. changing the name of the query (or mutation) while watch is running