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

TypeError: Cannot read property '__resizeTriggers__' of undefined #20

Open
hethcox opened this issue Nov 28, 2017 · 1 comment
Open

Comments

@hethcox
Copy link

hethcox commented Nov 28, 2017

I use the v-bar in part of my app and it worked great. When I created a second for use in a different .vue file, I get the error below when it tried to display. Do I need to register the component globally?


webpack-internal:///./node_modules/vue/dist/vue.esm.js:1697 TypeError: Cannot read property 'resizeTriggers' of undefined
at addResizeListener (webpack-internal:///./node_modules/detect-resize/lib/index.js:132)
at VueComponent.mounted (webpack-internal:///./node_modules/v-bar/node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/selector.js?type=script&index=0&bustCache!./node_modules/v-bar/src/components/v-bar.vue:162)
at callHook (webpack-internal:///./node_modules/vue/dist/vue.esm.js:2869)
at Object.insert (webpack-internal:///./node_modules/vue/dist/vue.esm.js:4046)
at invokeInsertHook (webpack-internal:///./node_modules/vue/dist/vue.esm.js:5802)

@hethcox
Copy link
Author

hethcox commented Nov 30, 2017

I was able to resolve this by adding another layer of div:






Adding the div with the style "trayStyle" fixed the problem. Perhaps this was caused by the v-for needing a wrapper?

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

1 participant