Search code examples
angularng-packagr

How to fix angular deprecate whitelistedNonPeerDependencies in favor of allowedNonPeerDependencies


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.