[Solved] Uncaught ReferenceError: axios is not defined

Uncaught ReferenceError: axios is not defined

npm install --save axios vue-axios

PS: it is impossible to add Axios alone. It needs to be combined with Vue Axios. The plug-in only integrates Axios into vue.js.

Error reason & Solution:

//wrong
axios.post(...)
//right
this.axios.post(...)

Read More: