pnotify error

Closed
Gradient Able Gradient Able July 03, 2018
Login to reply
Amit G Support Agent
1 month ago
Resolved.
Amit G Support Agent
1 month ago

Hello,  Jonathan Sosa 

Thank you for choosing our theme.

you need to uninstall 'angular2-notifications' and install with version '0.7.4'

perform below command.

1, npm uninstall angular2-notifications --save

2. npm install angular2-notifications@0.7.4 --save

Thank's

Jonathan Sosa
1 month ago

After doing all the previous steps to be able to use the template, when I access to http://localhost:4200/advance/notify

When I click on the first notification it works correctly, then on the second click it throws the following error

ERROR TypeError: Can not read property 'success' of undefined 

     at NotificationsService.success (notifications.service.js: 23)

     at NotifyComponent.addNotify (notify.component.ts: 63)

     at Object.eval [as handleEvent] (NotifyComponent.html: 20)

     at handleEvent (core.js: 13589)

     at callWithDebugContext (core.js: 15098)

     at Object.debugHandleEvent [as handleEvent] (core.js: 14685)

     at dispatchEvent (core.js: 10004)

     at eval (core.js: 10629)

     at HTMLButtonElement.eval (platform-browser.js: 2628)

     at ZoneDelegate.invokeTask (zone.js: 421)


and so with all the other buttons.

thx


Additional Info

Issue with?: Angular