-
Notifications
You must be signed in to change notification settings - Fork 18
Types not generated for all files, ambiguous build error #89
Comments
Did some triangulation. Build seems to be choking on the fact that I have a file
As soon as I remove the file, the types are generated as expected. |
I have a similar setup with type augments but my config is slightly different. Can you try:
{
// ...
"compilerOptions": {
// ...
"typeRoots": [
"node_modules/@types",
"types"
],
}
// ...
} Let me know if that does something. |
Thanks for opening this issue @OfficerHalf, putting a global.d.ts in src dir is reasonable & shouldn't cause issue. Could you try @ricokahler's workaround for now? My apologies for the inconvenience. It's possible that this is an issue with the upstream lib, I'll take a look. |
Same issue here. Quite a pain. Trying to move my types out of I spent a bit of time debugging and it's definitely an upstream lib — |
Ah, I just found
|
It worked once, then decided to quit on me. I'm using
gatsby-plugin-graphql-codegen
with the default config, notgatsby-plugin-ts
. It's very possible I've just done something wrong; I'm new to gatsby and graphql both, but this error message isn't very useful:Types are being generated, but missing for at least one file:
My query looks fine and runs fine, so I'm not sure what I'm missing. Repo is here.
The text was updated successfully, but these errors were encountered: