-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Angular Compiler requires TypeScript >=2.7.2 and <2.10.0 but 3.0.1 was found instead. #11876
Comments
Similar happens if |
It's a "feature", not a bug. WTF: #11138 (comment) |
@trollkotze Why would |
Yes that's what I meant to convey. It's weird. |
|
Downgrading to typescript 2.9.2 ( Verified that version 2.9.2 of typescript was in node_modules. |
Hello, |
After update to Angular 7 (check your angular version with |
That's some trolling comment you just added right? |
I was lead here as I worked through trying to get Angular to work locally. What worked for me was @emircanok 's solution of running My build works now. My version is the following: Package Version@angular-devkit/architect 0.6.8 |
Is there a way to avoid downgrade? |
@sotiris-rafail Using @emircanok 's version: |
Same problem from Angular 7 to Angular 8, running ng update @angular/cli @angular/core
Seems this fixed that specific build error:
|
This is work for me too. |
I got same issue npm install typescript@">=3.4.0 <3.5.2" still same error. when I run ng build --prod ERROR in The Angular Compiler requires TypeScript >=3.4.0 and <3.5.0 but 3.5.1 was found instead. Any idea? |
|
sure. Still get ERROR in The Angular Compiler requires TypeScript >=3.4.0 and <3.5.0 but 3.5.1 was found instead. ng build --prod My ng version is: Angular CLI: 8.1.1 Package Version@angular-devkit/architect 0.800.3 |
any idea? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm submitting a...
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
The text was updated successfully, but these errors were encountered: