[Vue warn]: Error in render: “TypeError: Cannot read properties of undefined (reading ‘state’)”()-vue
[Vue warn]: Error in render: “TypeError: Cannot read properties of undefined (reading ‘state’)”()
原因:如果不是语法错误,可能的原因是vuex的版本不匹配
解决办法:安装合适版本的vuex。我改安装成”vuex”: “^3.6.2″,错误被解决。
————————
原因:如果不是语法错误,可能的原因是vuex的版本不匹配
解决办法:安装合适版本的vuex。我改安装成”vuex”: “^3.6.2″,错误被解决。