[email protected] requires a peer of tslib@^1.10.0

Created on 27 Nov 2020  路  5Comments  路  Source: damienbod/angular-auth-oidc-client

Describe the bug
When installing [email protected] in a fresh Angular Project (ng new test with Angular [email protected]) I receive the following warning:

[email protected] requires a peer of tslib@^1.10.0 but none is installed. You must install peer dependencies yourself.

This happens as a default angular project depends on "tslib": "^2.0.0".

Anyway when checking the package.json for this project in this repo, tslib is not listed as a peer dependency, but it is in the package.json downloaded from npm (@11.2.3).

To Reproduce
Steps to reproduce the behavior:

  1. Create new angular app using at least Angular CLI @ 11.0.2. ng new test-project
  2. When finish, cd into the folder and run npm i angular-auth-oidc-client.
  3. Check you get the following warning: npm WARN [email protected] requires a peer of tslib@^1.10.0 but none is installed. You must install peer dependencies yourself.

Expected behavior
After installing latest angular-auth-oidc-client on a fres Angular Project generated by Angular CLI 11.0.2 this warning will be thrown: npm WARN [email protected] requires a peer of tslib@^1.10.0 but none is installed. You must install peer dependencies yourself.

Screenshots
Not necessary

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome but not really relevant
  • Version: 86.0.4240.198

All 5 comments

same as this issue:

https://github.com/damienbod/angular-auth-oidc-client/issues/814

We have a problem here targeting the Angualr versions.

Hi Damien,

I used the search but couldn't find such issue, great to know it's already reported :P

Thank you for the quick answer! Great work 馃挭

Greetings,

Antonio

Still need to fix it :)

fixed, with be released in the next version. Just want to get the opened PR finished first.

Thanks for reporting

Greetings Damien

Thank you so much Damien!! :)

Was this page helpful?
0 / 5 - 0 ratings