luiguild / v-bar

The virtual responsive crossbrowser scrollbar component for VueJS 2x
MIT License
222 stars 28 forks source link

slice Error after build with webpack #15

Open afonso opened 7 years ago

afonso commented 7 years ago

When i change the components inside the wrapper i got this warning. While in dev mode i dont get this warning, only after build.

[Vue warn]: Error in beforeDestroy hook: "TypeError: Cannot read property 'splice' of undefined"

found in

---> <VBar> at node_modules/v-bar/src/components/v-bar.vue
       <Forms> at src/components/forms/Entry.vue
         <Forms> at src/views/Forms.vue
           <App> at src/components/App.vue
             <Root>

TypeError: Cannot read property 'splice' of undefined
    at removeResizeListener (index.js:154)
    at VueComponent.beforeDestroy (eval at ./node_modules/babel-loader/lib/index.js?{"cacheDirectory":true,"babelrc":true}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./node_modules/v-bar/src/components/v-bar.vue (forms-bundle.chunk.js:12), <anonymous>:175:84)
    at callHook (vue.runtime.esm.js:2662)
    at VueComponent.Vue.$destroy (vue.runtime.esm.js:2451)
    at destroy (vue.runtime.esm.js:3543)
    at invokeDestroyHook (vue.runtime.esm.js:5271)
    at invokeDestroyHook (vue.runtime.esm.js:5276)
    at VueComponent.patch [as __patch__] (vue.runtime.esm.js:5557)
    at VueComponent.Vue.$destroy (vue.runtime.esm.js:2474)
    at destroy (vue.runtime.esm.js:3543)

Any ideia?

JessicaDevelon commented 2 years ago

Hello, same error but in both dev mode and build. Any idea? Thank you.