jQuery UI Widgets › Forums › Vue › Bargauge erorr
This topic contains 3 replies, has 2 voices, and was last updated by Peter Stoev 6 years, 1 month ago.
-
AuthorBargauge erorr Posts
-
I received the following error when running the JqxBarGguage demo. I just copied and executed.
Upon removing getWidth JqxBarGauge executed.JQXWIDGETS release 6.1.0
Vue.js 2.0Chrome console error:
[Vue warn]: Error in data(): “ReferenceError: getWidth is not defined”
found in
—> <Acctjqwidgets> at src/components/Accounts/Acctjqwidgets.vue
<VApp>
<App> at src/App.vue
<Root>
warn @ webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:588
webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:1736 ReferenceError: getWidth is not defined
at VueComponent.data (webpack-internal:///./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Accounts/Acctjqwidgets.vue?vue&type=script&lang=js&:16)
at VueComponent.mergedDataFn (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:1165)
at getData (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:3410)
at initData (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:3367)
at initState (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:3306)
at VueComponent.Vue._init (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:4612)
at new VueComponent (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:4782)
at createComponentInstanceForVnode (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:4301)
at init (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:4122)
at createComponent (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:5592)Regards,
GaryHi Gary,
getWidth is defined in demos.js. You should include it in your apps or simply put a value defined by you for width. Also which demo did you run, how did you run it and how can we reproduce the reported behavior?
Regards,
PeterPeter,
The code I copied can be found in the section Documentation – Get Started – App.vue.
Gary
Hi Gary,
The issue is indeed in the missing demos.js reference here. getWidth is defined there. We will point that in the documentation.
Thanks for the feedback.
Regards,
Peter -
AuthorPosts
You must be logged in to reply to this topic.