reason
store
is not introduced in the main. JS
file
Solution
Add the following code
import store from "./store";
new Vue({
el: '#app',
router,
store,
render: h => h(App)
})
Similar Posts:
- How to Solve Request failed with status code 404
- [Solved] Vue router in the element UI navigation bar repeatedly clicks on the menu above version 3.0 and reports errors
- Vue: How to use Vue-router in Axios
- [Solved] Vue DevTools Plugin Error: Vue.js is detected on this page. Open DevTools and look for the Vue panel.
- How to Solve Vue Error: NavigationDuplicated
- [Solved] Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to
- ERROR Failed to compile with 1 errors
- [Solved] Vue router common problems (push error, push duplicate route refresh)
- When deploying Django project on centos7, there will be an error of importerror: cannot import name middlewaremin