This error is always reported when using vuex: error in created hook: “typeerror: cannot read property ‘commit’ of undefined”
It was found that the global store was not introduced in main.js
import store from ‘store/store.js’
const app = new Vue({ …App, store })
Record it here and remind yourself to remember
Read More:
- Threejs is used in Vue to introduce error reporting problem of orbitcontrols
- Error reporting – the project directly introduces the error reporting and solution of. SCSS file
- After using fastlick, double-click the error reporting solution
- No route info solution for rocketmq error reporting
- Solution of Java resources error reporting
- [Vue] install vuex, error: eperm: operation not permitted, rename
- Solution of plugins error reporting in idea maven
- Ego planner swarm installation and error reporting solution
- Solution to error reporting in Java @ override
- Error reporting: java.lang.nullpointerexception solution
- Redhat8 make nginx error reporting solution
- Solution of selenium driven edge error reporting
- Python installation pysimplegui error reporting solution
- Solution of project error reporting in eclipse
- about jQuery.js The solution to always reporting errors
- Maven package error reporting java.lang.stackoverflowerror solution
- Solution of epol warehouse error reporting during openeuler-21.09 DNF update
- Opencv453 drawing rectangle function error reporting solution
- Process finished with exit code 0 error reporting solution
- Solution to error reporting during installation of xlsx style