sciactive / pnotify

Beautiful JavaScript notifications with Web Notifications support.
https://sciactive.com/pnotify/
Apache License 2.0
3.65k stars 514 forks source link

default.prototype.options is undefined #375

Closed mrjohnmain closed 4 years ago

mrjohnmain commented 4 years ago

I am trying to do some really vanilla work with PNotify but running into an error. I'm installed with NPM and added these lines to my main app.js:

import PNotify from 'pnotify/dist/es/PNotifyNonBlock'; import PNotifyButtons from 'pnotify/dist/es/PNotifyButtons';

But I continually get this error in the console:

TypeError: pnotify_dist_es_PNotifyNonBlock__WEBPACK_IMPORTED_MODULE_0__.default.prototype.options is undefined

I've not tried to do anything functionally with it yet - this is immediately on page load.

Can anyone help? TIA :)