vue2-notify
vue2-notify copied to clipboard
Does not work in Nuxt.js (Vue SSR)
trafficstars
The library won't work in Nuxt.js. Simply importing vue2-notify crashes with "window not defined" (coming from hard-wired velocity-animate dependency).
Steps to reproduce:
$ node
> require('vue2-notify')
ReferenceError: window is not defined
at Object.<anonymous> (/Users/semenov/tmp/vue/node_modules/velocity-animate/velocity.js:417:4)
at Module._compile (module.js:573:30)
@websmurf If I try to replace velocity-animate with CSS animation and setTimeout function, what do you think about that? I'm also not thrilled about hard-wired velocity-animate dependency.
For fadeIn & fadeOut I can use this code https://vuejs.org/v2/guide/transitions.html#Transitioning-Single-Elements-Components
@core01 sorry for taking this long to respond, but yes, that would be welcome