2 people reported
All time, since Apr 15, 2024.
Codegen imports invalid admin types path
“The path to ./admin.types is invalid because the default output for the admin types is admin.types.d.ts.”
Is this your bug? What gets counted gets fixed. Pile on.
Paste this into your agent. It files your report, with your error and version.
I hit this bug: rapsheet.dev/sheets/shopify/issues/7106/file Follow it to file my report. Show me the text before you send.
No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends
Codegen output imports admin types with an invalid path. In admin.generated.d.ts from @shopify/api-codegen-preset, the import of ./admin.types fails because the default output is admin.types.d.ts.
Is this your bug?
File my report- Where
- api-codegen-preset
- Error text
A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './admin.types' instead?ts(2846)- Versions
- 1.1.1
- Platforms
- Windows
- How bad
- Breaks a normal workflow.
Not quite your bug?
- Codegen types can't resolve module2 people
- Storefront GraphQL types not applied2 people
- Codegen rejects Admin API fields4 people
Original reports2, newest first
- TS Error: Graphql types generated by codegen use incorrect import for admin api typesOn GitHubshopify-app-js #2873
- GraphQL Admin Codegen import types throwing TS errorOn GitHubshopify-app-js #798