Navigation

    Quasar Framework

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Ed
    E
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Ed

    @Ed

    0
    Reputation
    2
    Posts
    6
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Ed Follow

    Posts made by Ed

    • RE: @quasar/testing: [Vue warn]: Error in render: "TypeError: Cannot read property 'lang' of undefined"

      Looking through the stack trace I see this.$q is undefined when the LoadingBar plugin tries to install:

      https://github.com/quasarframework/quasar/blob/e9b85566b01250732532c3e053ae82f8795cf1d8/ui/src/components/ajax-bar/QAjaxBar.js#L131

      I’d imagine this is because the tests are using createLocalVue and therefore Quasar ($q) has been installed on the localVue but not on the instance created below:

      https://github.com/quasarframework/quasar/blob/c484aa12e4561ff6b9867abd6213eee612e7013f/ui/src/plugins/LoadingBar.js#L23

      One way around this (that’s worked for me) would therefore be to Vue.use(Quasar) to install Quasar globally before using createLocalVue.

      However given that the installed Quasar $q is available in LoadingBar.install, I wonder whether it can be in some way used in the new Vue constructor; or indeed whether the localVue could be used in place of the Vue (although I don’t see a readily available reference to the localVue within that scope), thereby avoiding polluting the global Vue.

      posted in [v1] App Extensions
      E
      Ed
    • RE: @quasar/testing: [Vue warn]: Error in render: "TypeError: Cannot read property 'lang' of undefined"

      I have hit the same issue when testing components in my project. I can, however, mount the App without issue.

      Has anyone else found a solution?

      posted in [v1] App Extensions
      E
      Ed