You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have encountered an issue with the library while I was upgrading from Angular 6 to 10. The error occurs at Angular 9.1.
I am receiving the following issue on Chrome: TypeError: Cannot read property 'toast' of undefined and on Firefox: TypeError: this.config is undefined. The dependency injection is done as it is written in the documentation, but when I check the variable it has an undefined config.
I am using v9.0.1 of the library.
Thank your for the help in advance! :)
The text was updated successfully, but these errors were encountered:
I have found a solution, I had to change the part with the dependency injection, so instead of constructor(private snotifyService: SnotifyService) {}
it looks like constructor(private snotifyService: SnotifyService) {snotify.config = ToastDefaults;}
ToastDefaults of course was imported form ng-snotify
I have found a solution, I had to change the part with the dependency injection, so instead of constructor(private snotifyService: SnotifyService) {}
it looks like constructor(private snotifyService: SnotifyService) {snotify.config = ToastDefaults;}
ToastDefaults of course was imported form ng-snotify
Hi everyone!
I have encountered an issue with the library while I was upgrading from Angular 6 to 10. The error occurs at Angular 9.1.
I am receiving the following issue on Chrome:
TypeError: Cannot read property 'toast' of undefined
and on Firefox:TypeError: this.config is undefined
. The dependency injection is done as it is written in the documentation, but when I check the variable it has an undefined config.I am using v9.0.1 of the library.
Thank your for the help in advance! :)
The text was updated successfully, but these errors were encountered: