Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #10144
Closed
Open
Issue created Aug 12, 2021 by Administrator@rootContributor

[BUG] TypeScript version not compatible with Angular 12

Created by: bsreddy125

Description

Typescript script version is not compatible with angular version 12.1.2, giving below error while doing ng build, × Compiling with Angular in legacy View Engine compilation mode. The Angular Compiler requires TypeScript >=4.2.3 and <4.4.0 but 4.0.8 was found instead.bar

openapi-generator version

5.2.0

OpenAPI declaration file content or url
${project.basedir}/target/openapi.json typescript-angular
                                <!-- Config Options: https://openapi-generator.tech/docs/generators/typescript-angular/ -->
                                <output>${project.basedir}/eap-group-services-client-angular</output>
                                <configOptions>

                                    <npmName>@anthem/eap-groups-angular-client</npmName> <!-- npmName when set generates a package.json file as long as the .openapi-generator-ignore
                                        file isn't set to ignore package.json -->
                                    <npmRepository>------------</npmRepository>
                                    <providedInRoot>true</providedInRoot>
                                    <apiModulePrefix>EAPGroupsService</apiModulePrefix>
                                    <ngVersion>12.1.2</ngVersion>
                                    <stringEnums>true</stringEnums>

                                </configOptions>.

-->

Command line used for generation
Steps to reproduce

Open api generated package.json "peerDependencies": { "@angular/core": "^12.1.2", "rxjs": "^6.6.0" }, "devDependencies": { "@angular/common": "^12.1.2", "@angular/compiler": "^12.1.2", "@angular/compiler-cli": "^12.1.2", "@angular/core": "^12.1.2", "@angular/platform-browser": "^12.1.2", "ng-packagr": "^11.0.2", "reflect-metadata": "^0.1.3", "rxjs": "^6.6.0", "tsickle": "^0.39.1", "typescript": ">=4.0.0 <4.1.0", "zone.js": "^0.11.3" },

My dependencies:

// Spring Docs implementation 'org.springdoc:springdoc-openapi-webflux-ui:1.5.10'

Assignee
Assign to
Time tracking