acacode / swagger-typescript-api

Generate the API Client for Fetch or Axios from an OpenAPI Specification
MIT License
3.08k stars 338 forks source link

BUG:import type error in version ^13.0.10 & ^13.0.11 #809

Closed alaywn closed 2 days ago

alaywn commented 3 days ago

../node_modules/.pnpm/swagger-typescript-api@13.0.10_encoding@0.1.13/node_modules/swagger-typescript-api/index.d.ts:1:39 - error TS2307: Cannot find module './src/schema-parser/mono-schema-parser' or its corresponding type declarations.

1 import type { MonoSchemaParser } from "./src/schema-parser/mono-schema-parser";


../node_modules/.pnpm/swagger-typescript-api@13.0.10_encoding@0.1.13/node_modules/swagger-typescript-api/index.d.ts:215:46 - error TS2307: Cannot find module './src/translators/translator' or its corresponding type declarations.

215   customTranslator?: new () => typeof import("./src/translators/translator").Translator;

../node_modules/.pnpm/swagger-typescript-api@13.0.10_encoding@0.1.13/node_modules/swagger-typescript-api/index.d.ts:282:22 - error TS2307: Cannot find module './src/schema-parser/schema-parser' or its corresponding type declarations.

282 parser: import("./src/schema-parser/schema-parser").SchemaParser,


../node_modules/.pnpm/swagger-typescript-api@13.0.10_encoding@0.1.13/node_modules/swagger-typescript-api/index.d.ts:369:28 - error TS2307: Cannot find module './src/code-gen-process' or its corresponding type declarations.

369     codeGenProcess: import("./src/code-gen-process").CodeGenProcess,

../node_modules/.pnpm/swagger-typescript-api@13.0.10_encoding@0.1.13/node_modules/swagger-typescript-api/index.d.ts:660:24 - error TS2307: Cannot find module './src/translators/translator' or its corresponding type declarations.

660 ) => typeof import("./src/translators/translator").Translator;


../node_modules/.pnpm/swagger-typescript-api@13.0.10_encoding@0.1.13/node_modules/swagger-typescript-api/index.d.ts:664:46 - error TS2307: Cannot find module './src/component-type-name-resolver' or its corresponding type declarations.

664     componentTypeNameResolver: typeof import("./src/component-type-name-resolver").ComponentTypeNameResolver;

Found 6 errors in the same file, starting at: ../node_modules/.pnpm/swagger-typescript-api@13.0.10_encoding@0.1.13/node_modules/swagger-typescript-api/index.d.ts:1