-
Notifications
You must be signed in to change notification settings - Fork 185
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
[BUG] Vue/Nuxt getting "Reference Error" on 0.9.0 #165
Comments
I'm injecting it globally via script: [
{
hid: 'nipplejs',
src: 'https://cdnjs.cloudflare.com/ajax/libs/nipplejs/0.9.0/nipplejs.min.js',
defer: true,
},
], |
Hello! Does that make it work? I copied your script import and put it in my nuxt config but I still have the freezing build issue. Then I found this vue wrapper. https://www.npmjs.com/package/vue-nipple .
and in my nuxt.config:
but then when I use a < Nipple / > component in my code it simply cannot find it 🤷♂️. Nipple and Vue seems a match made in hell. T_T |
EDIT: I'm stupid I was using the wrong component name in my code XD Vue.component('Nipple', Nipple); fixed it. |
Describe the bug
I didn't dig deeper yet, but while importing
import nipplejs from 'nipplejs'
the latest version 0.9.0, I get aReference Error
in nuxt. Actually the whole build freezes and doesn't even export a fail message.To Reproduce
Steps to reproduce the behavior:
import nipplejs from 'nipplejs'
Expected behavior
nipplejs doesn't create a
Reference Error
Screenshots, Codepen or JSFiddle
If applicable, add screenshots, codepen or jsfiddle to help explain your problem.
Desktop (please complete the following information):
Additional context
I looked a bit through the issues, but couldn't find a solution. For now I downgraded to 0.8.7.
The text was updated successfully, but these errors were encountered: