Angular-cli: Warning when using Angular 5.2 with TypeScript 2.6

Created on 11 Jan 2018  路  5Comments  路  Source: angular/angular-cli

I'm submitting a...


[X] Bug report  

Current behavior

ng serve with TypeScript 2.6 and Angular 5.2 warns with:

```@angular/[email protected] requires typescript@'>=2.4.2 <2.6.0' but 2.6.2 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.6.0'

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

Expected behavior

No warning

Minimal reproduction of the problem with instructions

ng new my-project
Update to TypeScript@latest and angular@latest
ng serve

Environment


Angular CLI: 1.6.3
Node: 8.4.0
OS: linux x64
Angular: 5.2.0
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router
... service-worker

@angular/cdk: 5.0.4
@angular/cli: 1.6.3
@angular/material: 5.0.4
@angular-devkit/build-optimizer: 0.0.36
@angular-devkit/core: 0.0.22
@angular-devkit/schematics: 0.0.42
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.3
@schematics/angular: 0.1.11
typescript: 2.6.2
webpack: 3.10.0
2 (required) bufix

Most helpful comment

fixed by https://github.com/angular/angular-cli/pull/9097
We should try to be more proactive about these changes

All 5 comments

fixed by https://github.com/angular/angular-cli/pull/9097
We should try to be more proactive about these changes

ng serve for 5.2.10 shows warning for typescript 2.7.2 and up.
I am current using typescript 2.8.3.

@deiyanfott still using with warnings or you downgraded typescript?

@Janatbek reverted back to 2.6.2 for now. I guess this will be fixed in Angular 6.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jmurphzyo picture jmurphzyo  路  3Comments

IngvarKofoed picture IngvarKofoed  路  3Comments

purushottamjha picture purushottamjha  路  3Comments

delasteve picture delasteve  路  3Comments

rajjejosefsson picture rajjejosefsson  路  3Comments