question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Drop upper limit for Typescript peerDependecy

See original GitHub issue

🐞 bug report

Affected Package

@angular/cli

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:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
alan-agius4commented, Aug 28, 2019

@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.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 28, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found