pnotify icon indicating copy to clipboard operation
pnotify copied to clipboard

PNotify 4, NPM & webpack

Open C0kkie opened this issue 6 years ago • 1 comments

Hello,

i installed pnotify via

npm install --save pnotify npm install --save material-design-icons npm install --save nonblockjs

and added

window.PNotify = require("pnotify/dist/iife/PNotify");

to the app.js

if i build the things now with webpack and i use

PNotify.error({ title: 'Fehler', text: "test", styling: 'bootstrap3' });

i get the error

Uncaught TypeError: PNotify.error is not a function

C0kkie avatar Nov 23 '19 04:11 C0kkie

I had the same issue and resolved it by importing PNotify from the umd folder instead of the iife folder. Add this require statement: window.PNotify = require('pnotify/dist/umd/PNotify')

M-BenAli avatar Jun 05 '20 14:06 M-BenAli