Closed Sonik20 closed 5 years ago
I'm facing the same problem, can someone help in this context.
This is happening because they're using arrow functions, which can't be polyfilled back into older browsers like IE. So you'll have to use the ES5 js files if you want to support older browsers. Those don't appear to import nicely into Angular 6 though for some reason, but I'll update this if I figure that part out.
Edit:
So to get around it you can add the iife PNotify/PNotifyButtons scripts to your angular.json
scripts": [ "./node_modules/pnotify/dist/iife/Pnotify.js", "./node_modules/pnotify/dist/iife/PNotifyButtons.js" ]
Then in your pnotify service up in your imports section add the following to make it not complain about them not existing:
declare var PNotifyButtons: any;
declare var PNotify: any;
Thank you @smithk58 for your hepl, your solution fixed my app in IE.
Thanks, @smithk58!
@hperrin Can you please help here. Thanks![2018-06-01_15-23-22](https://user-images.githubusercontent.com/24838052/40835039-0024cd04-65b0-11e8-8939-d630b5e1a3a8.png)