Skip to content

The Angular Compiler requires TypeScript >=2.7.2 and <2.10.0 but 3.0.1 was found instead. #11876

Closed
@DmitriyIvanko

Description

@DmitriyIvanko

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[+] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
[ ] Other... Please describe:

Current behavior

@angular/[email protected] requires typescript@'>=2.7.2 <2.10' but 3.0.1 was found instead.
Using this version can result in undefined behavior and difficult to debug problems.

Expected behavior

The compiler cli should use a newer version of typescript.

Minimal reproduction of the problem with instructions

Run
ng new MyProject
cd MyProject
npm i --save-dev typescript@latest
ng serve --open

What is the motivation/use case for changing the behavior?

The tools should use the current stable versions of other tools and not be making one or more steps back.

Environment

"@angular/cli": "~6.1.3",
"@angular/compiler-cli": "^6.1.2",
"@angular/language-service": "^6.1.2",
"@ngrx/schematics": "^6.1.0",
"@types/jasmine": "~2.8.6",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~10.5.8",
"codelyzer": "~4.4.3",
"jasmine-core": "~3.2.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.0",
"karma-jasmine": "~1.1.1",
"karma-jasmine-html-reporter": "^1.2.0",
"protractor": "~5.4.0",
"ts-node": "~7.0.1",
"tslint": "~5.11.0",
"tslint-eslint-rules": "^5.3.1",
"typescript": "~3.0.1"

Angular version: 6.1.2


Browser:
 Build problem
 
For Tooling issues:
- Node version: 8.11.2  
- Platform:  Win 10 (x64) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions