[Vuejs]-Cannot read property 'post' of undefined using vue.js and axios

0👍

You need to remove the curly brackets around import { axios } from "axios"; so it looks like import Axios from "axios"; as with the curly brackets you are just importing the Axios object instead of the library.

Leave a comment