Drop upper limit for Typescript peerDependecy
See original GitHub issue🐞 bug report
Affected Package
Is this a regression?
Somewhat
Description
Typescript version is locked within range.
🔬 Minimal Reproduction
Not needed
🔥 Exception or Error
Angular asks for Typescript to be peerDependency within a certain range. I would expect it to not be that case as when upgrading from 7.x I was forced to downgrade Typescript from 3.5.x.
I suppose there need to be some minimal version required, but I don’t see any reason why prevent developers from using newer version if they op into it. I would understand a note about “incorrect” version at most.
🌍 Your Environment
Angular Version:
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 8.1.1
Node: 12.4.0
OS: win32 x64
Angular: 8.1.1
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.801.1
@angular-devkit/build-angular 0.801.1
@angular-devkit/build-optimizer 0.801.1
@angular-devkit/build-webpack 0.801.1
@angular-devkit/core 8.1.1
@angular-devkit/schematics 8.1.1
@ngtools/webpack 8.1.1
@schematics/angular 8.1.1
@schematics/update 0.801.1
rxjs 6.5.2
typescript 3.4.5
webpack 4.35.2
Anything else relevant? https://github.com/angular/angular/issues/31059
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
NPM how to resolve peer dependencies without
Edit: I'm trying my best to go through and satisfy all the dependencies/peer-dependencies, but so far it's demanding I use the newest version...
Read more >Understanding Peer Dependencies in JavaScript
Peer dependencies are almost like normal dependencies, but instead of defining a strong requirement between A and B (i.e the project you're ...
Read more >Peer Dependencies | Node.js
UPDATE: npm versions 1, 2, and 7 will automatically install peerDependencies if they are not explicitly depended upon higher in the dependency ...
Read more >Difference between dependencies, devDependencies and ...
A peer dependency specifies that our package is compatible with a particular version of an npm package. If a package doesn't already exist...
Read more >A tip on using peer dependencies with TypeScript
Tagged with npm, typescript. ... React is now a peer dependency, which means the main application needs to list it in its own...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Akxe, you can opt to use unsupported TypeScript versions by using the
disableTypescriptVersionCheck
compiler option.See: https://angular.io/guide/angular-compiler-options#disabletypescriptversioncheck
Note: that certain functionality might not work properly since the TypeScript version you will be using will be an unsupported version.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.