OpenAPITools / OpenAPITools/openapi-generator
[BUG] [typescript-angular] Angular 14 is not supported
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Description
Specify an Angular version 14.x leads to unresolvable dependencies during "npm install":
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @proxia-mes/monitoring-dashboard-gui-service-api@1.0.108
npm ERR! Found: typescript@4.4.4
npm ERR! node_modules/typescript
npm ERR! dev typescript@">=4.4.2 <4.5.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer typescript@">=4.6.2 <4.8" from @angular/compiler-cli@14.1.3
npm ERR! node_modules/@angular/compiler-cli
npm ERR! dev @angular/compiler-cli@"^14.0.5" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/runner/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2022-08-24T11_50_36_035Z-debug-0.log
Error: Process completed with exit code 1.
For me, it looks like the problem is that in the package.json the angular version is specified with "^".
So the latest 14.x version is downloaded (in my case 14.1.3) which needs a typescript version ">=4.6.2 <4.8",
but in the package.json a version ">=4.4.2 <4.5.0" is generated.
openapi-generator version
Version 6.0.1
Steps to reproduce
As i can see, no build of Angular 14.x generated sources should work.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the generated package.json for the typescript-angular output and reproduce npm install using Angular 14.x. Compare the generated TypeScript range with the peer requirement reported for @angular/compiler-cli 14.1.3; done means Angular 14.x sources install successfully without forcing or ignoring peer dependencies.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100