错误消息:Uncaught TypeError: Object(…) is not a function
查看package.json中vuex依赖是否为"vuex": "^3.6.2"以上版本
Vue2不支持"vuex": "^3.6.2"以上版本的vuex组件
先卸载不兼容的版本
npm uninstall vuex
再安装合适的版本
npm install --save vuex@3
重启服务,成功运行
错误消息:Uncaught TypeError: Object(…) is not a function
查看package.json中vuex依赖是否为"vuex": "^3.6.2"以上版本
Vue2不支持"vuex": "^3.6.2"以上版本的vuex组件
先卸载不兼容的版本
npm uninstall vuex
再安装合适的版本
npm install --save vuex@3
重启服务,成功运行