No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Updated to Quasar/app 2.1.1 - Uncaught TypeError: Cannot set property 'axios' of undefined

    Help
    3
    3
    326
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Shiftops last edited by

      I’ve dug up an old-ish project (few months since I’ve worked on it) and did an update via npm update, which has updated my quasar/app to 2.1.1 from 2.0.0.

      This is an SPA that uses Axios for XHR via VueAxios.

      I am now getting this error:

      Uncaught TypeError: Cannot set property ‘axios’ of undefined

      It appears to be an issue referring to a boot file that imports axios and VueAxios:

      import Vue from 'vue'
      import axios from 'axios'
      import VueAxios from 'vue-axios'
      
      Vue.use(VueAxios, axios)
      axios.defaults.baseURL = process.env.BASE_URL
      
      

      However this import method is correct according to the VueAxios documentation.

      Has anyone else run into this issue? It’s got me stumped!

      1 Reply Last reply Reply Quote 0
      • patryckx
        patryckx last edited by

        how is your BASE_URL code in quasar.conf.js?

        1 Reply Last reply Reply Quote 0
        • J
          Jonalxh last edited by

          @patryckx Have you found it?

          1 Reply Last reply Reply Quote 0
          • First post
            Last post