Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't Import vs-notify in my vue 2+ project #1

Open
kofimokome opened this issue Aug 9, 2017 · 7 comments
Open

I can't Import vs-notify in my vue 2+ project #1

kofimokome opened this issue Aug 9, 2017 · 7 comments

Comments

@kofimokome
Copy link

This error message keeps coming up at line 38 of vs-notify.js:
Uncaught ReferenceError: Vue is not defined
How can I fix it?

@NxtChg
Copy link
Owner

NxtChg commented Aug 9, 2017

Are you using vue-cli?

@kofimokome
Copy link
Author

yes

@NxtChg
Copy link
Owner

NxtChg commented Aug 9, 2017

This component is for pure browser setup: you load vue.js and you load vs-notify after it.

If you use anything fancy, you need to read how to register Vue components in your environment and modify the code accordingly.

@kofimokome
Copy link
Author

So does it mean that it may not work with vue-cli?

@NxtChg
Copy link
Owner

NxtChg commented Aug 9, 2017

I don't use vue-cli and so I have no idea :)

@kofimokome
Copy link
Author

OK. Thanks

@joshua1
Copy link

joshua1 commented Aug 21, 2017

why not publish as an npm package and remove the restriction. add js files manually this days is too much of a hack. Nice notification lib here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants