You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And this give the following error because of the nullable
$ ts-node-dev src/index.ts
Using ts-node version 8.0.2, typescript version 3.3.3
[ERROR] 12:02:47 ⨯ Unable to compile TypeScript:
src/index.ts(26,7): error TS2322: Type '() => null' is not assignable to type 'FieldResolver<"Query", "user">'.
Type 'null' is not assignable to type 'MaybePromise<{ id: MaybePromise<string>; name: MaybePromise<string>; }>'.
The problem is that when I update to nullable: true I still get the same error.
It looks like it is getting the old generated types because it cannot run the server to generate the new types.
The text was updated successfully, but these errors were encountered:
Generally my workflow when developing is to have two processes running via gulp or similar, one starting/reloading the server with transpile only, one checking for errors.
Then in CI I’ll only have the tsc run so it catches any errors.
I have a simple schema like this
And this give the following error because of the
nullable
The problem is that when I update to
nullable: true
I still get the same error.It looks like it is getting the old generated types because it cannot run the server to generate the new types.
The text was updated successfully, but these errors were encountered: