angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Add support for typescript 2.7.1

Open dhniels opened this issue 8 years ago • 4 comments

Versions

<!--
Angular CLI: 1.6.7
Node: 9.3.0
OS: darwin x64
Angular: 5.2.3
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

@angular/cli: 1.6.7
@angular-devkit/build-optimizer: 0.0.42
@angular-devkit/core: 0.0.29
@angular-devkit/schematics: 0.0.52
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.7
@schematics/angular: 0.1.17
typescript: 2.7.1
webpack: 3.10.0
-->

Error Mesage:

Updated all my npm packages yesterday which updated typescript to 2.7.1. Angular CLI now produces this warning:

@angular/[email protected] requires typescript@'>=2.4.2 <2.7.0' but 2.7.1 was found instead.
Using this version can result in undefined behaviour and difficult to debug problems.

Please run the following command to install a compatible version of TypeScript.


    npm install typescript@'>=2.4.2 <2.7.0'

To disable this warning run "ng set warnings.typescriptMismatch=false".

Repro steps

Found when running ng build --watch on latest typescript version 2.7.1

Desired behavior

Update @angular/cli to support typescript 2.7.1 should resolve the issue?

dhniels avatar Feb 01 '18 18:02 dhniels

That warning is intended to indicate that Angular itself does not yet officially support TypeScript 2.7.

Angular 5.0 officially supports 2.4 Angular 5.1 officially supports 2.5 Angular 5.2 officially supports 2.6

clydin avatar Feb 01 '18 18:02 clydin

Are the any page/file that contains the most up to date list of version mappings i.e. basically an Angular/Typescript compatibility chart? (Like the comment by @clydin above).

wendelstam avatar Feb 05 '18 08:02 wendelstam

@wendelstam You can find eventually up to date version here.

devoto13 avatar Feb 05 '18 10:02 devoto13

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.