Skip to content
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

npm unable to resolve dependency tree for @4.0.0 (angular-devkit/architect) #459

Closed
squio opened this issue Aug 6, 2021 · 7 comments
Closed
Labels

Comments

@squio
Copy link

squio commented Aug 6, 2021

This issue looks exactly like #437 again; adding --force does work

This is caused by the mismatch of angular-devkit/architect versions @^0.1200.0 vs @^0.1202.2
The newest patch release appears to work just fine.

At the same time it is rather scary to run any npm update with the force flag everytime.

I understand there is little the ionic team can do here, still reporting so others are aware of the issue.

Found: @angular-devkit/architect@0.1202.0
npm ERR! node_modules/@angular-devkit/architect
npm ERR!   @angular-devkit/architect@"^0.1202.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @angular-devkit/architect@"^0.1200.0" from @ionic/angular-toolkit@4.0.0
npm ERR! node_modules/@ionic/angular-toolkit
npm ERR!   dev @ionic/angular-toolkit@"^4.0.0" from the root project
@Sampath-Lokuge
Copy link

This works for me: npm i --save-dev "@angular-devkit/architect@0.1200.5

@distante
Copy link

Hi @mhartington is this dependency fixed to ^0.1200.0 for some reason or a PR changing this would be welcomed?

@bchehraz
Copy link

bchehraz commented Oct 19, 2021

I too am having a similar issue going from angular 11 to 12 on Ionic 6 rc.0. I also feel using the force flag is risky...

@Julien-Marcou
Copy link

Julien-Marcou commented Oct 20, 2021

I have the same issue.

@ionic/angular-toolkit v4.0.0 has a peer dependency to @angular-devkit/architect ^0.1200.0 which means it's only able to fetch @angular-devkit/architect v0.1200.5 at the moment (instead of v0.1202.10), so if you try to upgrade to Angular v12.1.X or v12.2.X you'll get this error.

@RowTracker
Copy link

Please will you issue an update to support @angular 12.2.x. By not doing so and using --force to install @ionic/angular-toolkit, it results in npm reporting critical compatibility errors, for example npm audit fix won't work, adding cordova plugins etc all keep reporting @ionic/architect-toolkit as breaking compatibility.

To avoid this, I tried downgrading @Angular-devkit/architect to 0.1200.10. The problem with this is that this version fails if NPM is above 7.5.6 or Node above 14.0.0. However if you read the Ionic documentation regarding installing/upgrading Ionic, the first thing it says to do is make sure you have installed the latest version of Node and NPM.

I appreciate that this problem is caused by the non-standard semver numbering of @angular-toolkit/architect but that does not help developers like me.

I know I'm repeating myself but please issue an update to fix this issue.

Ionitron added a commit that referenced this issue Oct 28, 2021
# [5.0.0](v4.0.0...v5.0.0) (2021-10-28)

### Bug Fixes

* bump cheerio to rc4 ([905cff2](905cff2)), closes [#456](#456)
* update deps to match latest angular ([0100b8b](0100b8b)), closes [#455](#455) [#452](#452)

### Features

* update to support angular 12.0 ([671bfba](671bfba)), closes [#459](#459) [#460](#460)

### BREAKING CHANGES

* Apps must use Angular 12.0
@Ionitron
Copy link
Collaborator

🎉 This issue has been resolved in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@HenleyCoder
Copy link

wow! that was a really speedy response, thanks.

wand1252 added a commit to wand1252/angular-toolkit-develop that referenced this issue Aug 31, 2022
# [5.0.0](ionic-team/angular-toolkit@v4.0.0...v5.0.0) (2021-10-28)

### Bug Fixes

* bump cheerio to rc4 ([905cff2](ionic-team/angular-toolkit@905cff2)), closes [#456](ionic-team/angular-toolkit#456)
* update deps to match latest angular ([0100b8b](ionic-team/angular-toolkit@0100b8b)), closes [#455](ionic-team/angular-toolkit#455) [#452](ionic-team/angular-toolkit#452)

### Features

* update to support angular 12.0 ([671bfba](ionic-team/angular-toolkit@671bfba)), closes [#459](ionic-team/angular-toolkit#459) [#460](ionic-team/angular-toolkit#460)

### BREAKING CHANGES

* Apps must use Angular 12.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants