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
Given a Swagger definition without any model definitions, generated typescript-angular module can't be compiled: ERROR in [...]/index.ts(2,15): error TS2306: File '[...]/model/models.ts' is not a module.
Description
Given a Swagger definition without any model definitions, generated typescript-angular module can't be compiled:
ERROR in [...]/index.ts(2,15): error TS2306: File '[...]/model/models.ts' is not a module.
Swagger-codegen version
2.4.11-SNAPSHOT (b22ed93)
Command line used
Swagger declaration file content or url
Steps to reproduce
I created an example repository to reproduce the issue: https://github.com/yzhan94/swagger-codegen-angular-issue
npm install
andnpm start
(node version:10.17.0
).Suggest a fix
I believe this line should be wrapped in a conditional, so that it is omitted when no models are defined.
swagger-codegen/modules/swagger-codegen/src/main/resources/typescript-angular/index.mustache
Line 2 in b22ed93
The text was updated successfully, but these errors were encountered: