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.

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

See original GitHub issue

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/compiler-cli@6.1.2 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) 

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:12
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

61reactions
alexeaglecommented, Aug 13, 2018

@angular/compiler-cli support for TypeScript 3 will land in Angular 7

21reactions
emircanokcommented, Dec 1, 2018

Hello, I solve this problem like this. npm install typescript@">=2.7.2 <2.10.0" Unfortunately, you must run this command after each npm update.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Angular Compiler requires TypeScript >=2.7.2 and <2.8.0 ...
The Angular Compiler requires TypeScript >=2.7.2 and <2.8.0 but 2.8.3 was found instead · Stuck with same issue. I'm running 'ng build' from...
Read more >
Fix The Angular Compiler requires TypeScript versions
This post is a solution for an Error The Angular Compiler requires TypeScript >=4.0.1 and 4.1.7 but 4.2.0 was found instead.
Read more >
Testcafe script has syntax error in typescript
The error says - The Angular Compiler requires TypeScript >=2.7.2 and <2.8.0 but 3.0.1 was found instead. So I guess I could not...
Read more >
Can I Install @Angular/Cli@4.2.2 Locally Without Downgrading
@angular/compilercli@6.1.2 requires typescript@' 2.7.2 2.10' but 3.0.1 was found instead.Using this version can result in undefined. @angular/compilercli@6.1.
Read more >
ERROR in The Angular Compiler requires TypeScript >=3.9.2 ...
I got this following error "The Angular Compiler requires TypeScript >=3.9.2 and <4.0.0 but 3.8.3 was found instead." when build the ionic ...
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