nuxt-headway
nuxt-headway copied to clipboard
Undefined properties error on Vercel
Environment
"nuxt": "^2.15.8"
"nuxt-headway": "^1.0.0"
Code
<div v-headway v-headway-trigger class="fixed bottom-10 rounded bg-black opacity-50 hover:opacity-100 ease-in-out duration-300"></div>
Error
I got this error after deploying to Vercel even though working well on local.
2976505.js:2 TypeError: Cannot set properties of undefined (setting 'selector')
at inserted (2976505.js:2:154310)
at Tr (2976505.js:2:43826)
at y (2976505.js:2:43277)
at h (2976505.js:2:13768)
at ee (2976505.js:2:11519)
at Object.n [as insert] (2976505.js:2:13344)
at R (2976505.js:2:57489)
at Dn.__patch__ (2976505.js:2:58877)
at t._update (2976505.js:2:35127)
at Dn.r (2976505.js:2:65827)
re @ 2976505.js:2
2976505.js:2 TypeError: Cannot read properties of undefined (reading 'trigger')
at inserted (2976505.js:2:154548)
at Tr (2976505.js:2:43826)
at y (2976505.js:2:43277)
at h (2976505.js:2:13768)
at ee (2976505.js:2:11519)
at Object.n [as insert] (2976505.js:2:13344)
at R (2976505.js:2:57489)
at Dn.__patch__ (2976505.js:2:58877)
at t._update (2976505.js:2:35127)
at Dn.r (2976505.js:2:65827)
Is there a treatment for this error? Please notice me.