Updated to Quasar/app 2.1.1 - Uncaught TypeError: Cannot set property 'axios' of undefined
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!
patryckx last edited by
how is your BASE_URL code in quasar.conf.js?
@patryckx Have you found it?