一、问题描述 当我登录使用了elementUI的vue2项目时,输入用户名密码点击确定,报如下错误。 TypeError: sub is not a functionat vuex.esm.js:422:1at Array.forEach (<anonymous>)at Store.dispatch (vuex.esm.js:422:1)at Store.boundDispatch [as dispatch] (vuex.esm.js:332:1)at permissionsControl (...
一般在vue2.x项目中我们会使用Vue DevTools插件来帮助我们开发,但是今天项目突然出现bug,调用vuex的dispatch方法时突然出现报错,如下: TypeError:sub is not afunctionateval(vuex.esm.js?2f62:422:1)at Array.forEach(<anonymous>)at Store.dispatch(vuex.esm.js?2f62:422:1)at Store.boundDispatch[asdispatch...
nodejs20.x uni-app vue3 错误描述 [plugin:commonjs--resolver]Package subpath './dist/vuex.esm-bundler.js' is not defined by "exports" in /home/runner/work/...code/client/projects/wechat/node_modules/vuex/package.json 解决方案 这个问题在网上搜索到答案了,这个是应该vue的bug,有一个解决方案...