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

Peer dependency warning for @angular/compiler-cli@^15.0.0-next #2434

Closed
Blackbaud-SteveBrush opened this issue Sep 13, 2022 · 5 comments
Closed

Comments

@Blackbaud-SteveBrush
Copy link

Type of Issue

[x] Bug Report
[ ] Feature Request

Description

After installing ng-packagr version 14.3.0 I get the following error in the console:

peer dep missing: @angular/compiler-cli@^15.0.0-next, required by ng-packagr@14.3.0

Version Information

$ node_modules/.bin/ng-packagr --version
ng-packagr:            14.3.0
@angular/compiler:     14.2.1
rollup:                2.79.0
typescript:            4.7.4
rxjs: 7.5.6
node: 14.17.6
npm/yarn: 6.14.15
@JoostK
Copy link
Member

JoostK commented Sep 13, 2022

Version 14.3.0 has been marked as deprecated on NPM and should not be used; it was published by accident.

@Blackbaud-SteveBrush
Copy link
Author

Ah, thanks.

@Blackbaud-SteveBrush
Copy link
Author

Blackbaud-SteveBrush commented Sep 13, 2022

I installed with the ^ and got that version. Hopefully we can get a version higher that works. It appears that npm i --save-exact ng-packagr@^14 pulls in 14.2.1, which is correct. However, I'm using an npm package named latest-version to find the latest version, which pulls in 14.3.0.

Would it be possible to release a newer version of ng-packagr that addresses this issue? We author a utility for our consumers that installs the correct version of Angular packages for them, and the most recent version of ng-packagr is throwing this warning in their consoles.

@alan-agius4
Copy link
Member

This seems to he a bug in https://github.com/sindresorhus/latest-version which doesn’t properly for deprecated packages.

Therefore I recommend opening an issue in their repository.

@github-actions
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

This action has been performed automatically by a bot.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants