Skip to content

Does not work in Nuxt.js (Vue SSR) #7

@IlyaSemenov

Description

@IlyaSemenov

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)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions