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
An error was thrown in afterAll
TypeError: Cannot read properties of undefined (reading 'config')
at new Toast (http://localhost:9876/_karma_webpack_/webpack:/node_modules/ngx-toastr/fesm2022/ngx-toastr.mjs:653:41)
...
Same code & tests works ok in version 16.*
Any idea what is wrong?
Error seems to point to line 653 ngx-toastr.mjs which seem so be animation related: easeTime: this.toastPackage.config.easeTime,
The text was updated successfully, but these errors were encountered:
kle-pra
changed the title
TypeError: Cannot read properties of undefined (reading 'config')
v. 17.0.1: TypeError: Cannot read properties of undefined (reading 'config')
May 15, 2023
In version 17.0.1 there seems to be an error when using Toastr.
Steps to replicate:
In AppModule we import it:
In some component we inject and use Toastr service :
Angular animations depdendency "@angular/animations": "^16.0.1", is intalled and included in package.json
We get an error in browser console:
Same errors also happens in component test. Toastr service and module are provided in tests bed (among other dependencies):
ERROR msg:
Same code & tests works ok in version 16.*
Any idea what is wrong?
Error seems to point to line 653 ngx-toastr.mjs which seem so be animation related:
easeTime: this.toastPackage.config.easeTime,
Extra info about my system:
Best regards
The text was updated successfully, but these errors were encountered: