“export ‘createStore‘ was not found in ‘vuex‘报错
"export ‘createStore’ was not found in 'vuex’报错可能是因为版本的原因,将vuex升到4.0.0就能够解决在升级时也可能会遇到下面这种问题npm WARN vuex@4.0.0 requires a peer of vue@^3.0.2 but none is installed. You must install peer dependencies y
·
"export ‘createStore’ was not found in 'vuex’报错
可能是因为版本的原因,将vuex升到4.0.0就能够解决
在升级时也可能会遇到下面这种问题
npm WARN vuex@4.0.0 requires a peer of vue@^3.0.2 but none is installed. You must install peer dependencies yourself.
这种情况按照要求改变vue的版本,再重新安装vuex为4.0.0就好了
npm install --save vue@3.0.2
npm install --save vuex@4.0.0
更多推荐
已为社区贡献3条内容
所有评论(0)