DebugAH

How to Solve Your Programmer Error

Skip to content
  • Home
  • Linux
  • JAVA
  • Python
  • Javasript
  • MYSQL
  • Windows
  • Error

[Solved] VueX Error: Cannot read property ‘commit’ of undefined

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

This entry was posted in Error and tagged Cannot read property 'commit' of undefined, VueX on October 7, 2021 by Robins.

Post navigation

← [Solved] Python Error: ModuleNotFoundError: No module named ‘tkinter’ [Solved] Hive export MYSQL Error: Container [pid=3962,containerID=container_1632883011739_0002_01_000002] is running 270113280B beyond the ‘VIRTUAL’ memory limit. →

Recent Posts

  • [Solved] Win-KeX/wsl2/kali Startup Error: A fatal error has occurred and VcXsrv will now exit.
  • [Solved] samtools: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file
  • k8s Error: [ERROR FileAvailable–etc-kubernetes-kubelet.conf]: /etc/kubernetes/kubelet.conf already exists
  • [Solved] NoSuchMethodError: org.springframework.boot.web.servlet.error.ErrorController.getErrorPath
  • [Solved] flink web ui Submit Task Error: Server Respoonse Message-Internal server error
  • Mysql Error: 1140 – In aggregated query without GROUP BY, expression #2 of SELECT list contains nonaggregated column ‘a.store’; this is incompatible with sql_mode=only_full_group_by
  • [Solved] Mybatis multi-table query error: Column ‘id’ in field list is ambiguous
  • [Solved] fluentd Log Error: read timeout reached
  • [Solved] xgboost Load Module File Error
  • [Solved] npm install Error: github requires permissions, Permission denied (publickey)

Tags

  • )
  • android
  • android studio
  • CentOS
  • centos7
  • chrome
  • DebugAH
  • django
  • docker
  • eclipse
  • git
  • github
  • go
  • hadoop
  • Hive
  • IDEA
  • ios
  • java
  • jenkins
  • Linux
  • Mac
  • maven
  • MyBatis
  • mysql
  • nginx
  • No module named XXX error
  • npm
  • Oracle
  • php
  • pip
  • pycharm
  • Python
  • Python TypeError
  • redis
  • shell
  • spring
  • springBoot
  • ssh
  • SVN
  • tensorflow
  • tomcat
  • ubuntu
  • vue
  • Windows
  • Yum
Proudly powered by WordPress