-
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
Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript" (requires ">=3.1.1 <3.3", would install "3.4.5"). #14561
Comments
Also, do we have to do a git commit after every update operation??
|
I did see #13095 but wanted to specifically target the new 8.0 (where it says it supports Typescript 3.4 - except where it doesn't....) |
I was able to get the update to run using the --force flag, but it looks like the operations that are run after the update (updating tsconfig.json, tslint.json, etc) were not run. How do I re-run those schematics to get everything up to date? |
You can run |
Except:
|
@jtsom, yeah there is another issue with command, kindly see #14559 (comment) |
Ran into this as well. The only way I could get angular to upgrade 8 (from 7) was to use once I did this, I ran into the issue @jtsom called out:
Once I committed the changes and ran
|
@mswilson4040 same problem, Finally I use npm to update angular, like this: npm install @angular/cli@latest @angular-devkit/build-angular@latest --save-dev
npm install @angular/{common,compiler,compiler-cli,core,forms,platform-browser,platform-browser-dynamic,platform-server,router,animations}@latest [email protected] --save After update, you should manually add parameter to |
Hi, are you running |
@alan-agius4 yes, I run |
I encountered the same issues. The warning is related to your git repo. Committing my recent changes fixed the problem, and I was able to run the ng update commands (i.e. ng update @angular/cli @angular/core) |
run this command |
Fixing my git ignore worked for me. |
it work fine for |
i also meet this error.
and them
i don't run
now i have upgraded to angular8 and every thing sees ok. |
I had the same errors. Here's what worked for me: I ran the following to update the global version of the Angular CLI: Then I ran the following to update my angular project: Note: It's important to have a clean, up-to-date repo before running trying to update |
Before you use |
Thanks, seems to be working! |
On a side note, I had to run Thanks for the great work tho! |
Thanks |
Just tried to update another project and got:
getting worse... |
What's the solution for this? Running
|
I've never actually seen |
If Or at the very least, this message should be changed:
|
Yea, it's immediately suspicious when it reads |
Also having the same issue when running
|
Same here, |
Am updating the angular 7 to 8, after updating the |
Commit the changed files into your git repository and the message will disappear. |
It also happened to me, solved it by these steps
|
The language within the message specifies that update all will _try_ to update all the packages. In practice and especially for larger projects, this operation will mostly likely not succeed. This can lead to the users attempting to use the all option with the force option which has a decent probability to break the project via incorrect peer dependency installation or other incompability version increases (packages that don't follow semver, for instance). Reference: angular#14561 (comment)
The language within the message specifies that update all will _try_ to update all the packages. In practice and especially for larger projects, this operation will mostly likely not succeed. This can lead to the users attempting to use the all option with the force option which has a decent probability to break the project via incorrect peer dependency installation or other incompability version increases (packages that don't follow semver, for instance). Reference: #14561 (comment)
The language within the message specifies that update all will _try_ to update all the packages. In practice and especially for larger projects, this operation will mostly likely not succeed. This can lead to the users attempting to use the all option with the force option which has a decent probability to break the project via incorrect peer dependency installation or other incompability version increases (packages that don't follow semver, for instance). Reference: #14561 (comment)
The problem is, usually Angular follows new Typescript releases from a few months behind and once there is a new Typescript version,
ng update --all --skipIncompatible
ng update --all --except typescript |
For the moment, typescript will be updated to latest patch on 3.4.x versions. When Angular will allow latest stable typescript, I will update again it using the same command for the new supported minor version. |
Duplicate of #13095 |
I once face the same issue was www.allovermyhead.com tried almost every thing getting one error of the other then i tried ng update --all --force; |
Seems like |
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. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes
Yes, the previous version in which this bug was not present was: ....Description
Having this issue trying to do an ng update on a pretty stock angular 7 application to angular 8:
package.json:
🔬 Minimal Reproduction
🔥 Exception or Error
🌍 Your Environment
The text was updated successfully, but these errors were encountered: