Incompatible peer dependencies

I will go through some of incompatible peer dependency errors that I received during my upgrade process and the different strategies to resolve these errors. Note that I will start with simple cases and demonstrate the amount of research that may be required as the dependency you need may not be simply the latest released version of your package.

  • Package karma-jasmine-html-reporter has a missing peer dependency of "jasmine" @ "^3.0.0".

This is a simple error that is resolved by simply updating to the latest version of jasmine, as follows:

$ npm i -D jasmine
  • Package @angular/flex-layout has an incompatible peer dependency to "rxjs" (requires "^5.5.0", would install "6.1.0").

This error requires a bit of research ...

Get Angular 6 for Enterprise-Ready Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.