jQuery UI Widgets Forums Vue Bargauge erorr

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 6 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Bargauge erorr #102305

    Gary
    Participant

    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.0

    Chrome 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,
    Gary

    Bargauge erorr #102307

    Peter Stoev
    Keymaster

    Hi 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,
    Peter

    Bargauge erorr #102318

    Gary
    Participant

    Peter,

    The code I copied can be found in the section Documentation – Get Started – App.vue.

    Gary

    Bargauge erorr #102323

    Peter Stoev
    Keymaster

    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

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.