plauzul / ng2-izitoast

MIT License
19 stars 8 forks source link

Angular 6 #11

Open Exlord opened 5 years ago

Exlord commented 5 years ago

runnig this command ng update @angular/material, gives this error :

Package "ng2-izitoast" has an incompatible peer dependency to "@angular/core" (requires ">=5.0.0 <6.0.0" (extended), would install "7.0.0").

what does this mean and how can i fix it?

+Angular7

kapsrox commented 5 years ago

try to update @angular/material with specific version which belongs to angular 6

Exlord commented 5 years ago

its not related to @angular/material, any ng update X will throw this error because

"@angular/core": ">=5.0.0 <6.0.0"

Exlord commented 5 years ago

I have tested with angular 7 and it works fine, created a pull request https://github.com/plauzul/ng2-izitoast/pull/12

vugar005 commented 5 years ago

It is because the plugin uses angular @angular/core" (requires ">=5.0.0 <6.0.0" as a dependency. Solution

  1. We need to modify plugin dependency to >=5.0.0 <7.0.0"
  2. Or you can remove the plugin upgrade the angular to 7.0 and reinstall plugin. Hope that helps.
kapsrox commented 5 years ago

yes as per vugar005 commented you will get the solution