[Fixed] How to fix angular deprecate whitelistedNonPeerDependencies in favor of allowedNonPeerDependencies

Issue

I got the following warning in my cli and was wondering what was the new allowedNonPeerDependencies doing different.

WARNING: Option "whitelistedNonPeerDependencies" is deprecated: Use "allowedNonPeerDependencies" instead.

Solution

Basically we should only rename whitelistedNonPeerDependencies into allowedNonPeerDependencies into the package.json and ng-package.json files.

As said here it is to be "less racially charged" so nothing else to changes in the code.

Leave a Reply

(*) Required, Your email will not be published