0👍
You need to load and register VueRouter to be able to use its components.
import VueRouter from "vue-router";
Vue.use(VueRouter)
- [Vuejs]-Cannot read property 'post' of undefined using vue.js and axios
- [Vuejs]-Nuxtjs auth module – token endpoint in auth strategies configuration is never called
0👍
This means your vue-router version is too high.
Just reinstall a lower version:
npm install vue-router@3.2.0
Then re-run:
npm run serve
- [Vuejs]-Why is this error coming Uncaught (in promise) TypeError: Cannot read property 'created' of undefined in vue.js
- [Vuejs]-How to trigger a function when page is changed in vuejs
Source:stackexchange.com