Wondering if anyone on here has gotten pnotify to work; I am getting the following error (on the server, when building) when trying to use the npm package:
import pnotify from 'pnotify';
Error: jQuery requires a window with a document
at module.exports (...\node_modules\jquery\dist\jquery.js:31:12)
at s (...\node_modules\pnotify\dist\pnotify.js:6:386)
I'm guessing it has to do with the jquery dependency?
-- [email protected]
-- [email protected]
I am using BlazeLayout if it makes a difference...
I have also tried using the atmosphere package, to no avail import { PNotify } from 'meteor/s2corp:pnotify'
Any ideas?
For minimal notifications:
Add
pnotify:Import all necessary files and
PNotifyitself:Show notifiction:
All together in default meteor bare app: