Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ngx-toastr - Generic type 'ɵɵComponentDeclaration' requires between 7 and 8 type arguments

I have installed ngx-toastr and imported in app.module.ts but getting this error while compiling enter image description here...is it because i have set the properties of toaster in service file which I created like below?enter image description here

I tried adding @import '~ngx-toastr/toastr.css'; in styles.css still no effect. Does anyone know what might be the reason for this error and how to fix it

like image 649
KiG Avatar asked Oct 23 '25 11:10

KiG


1 Answers

you should try to uninstall your current version ngx-toastr, then try to install another version, I installed version 15.2.0 npm install --save [email protected], that works for me.

like image 179
Jhonatan Martinez Avatar answered Oct 25 '25 00:10

Jhonatan Martinez



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!