vuex报错 vuex__WEBPACK_IMPORTED_MODULE_1__.default.store is not a constructor

控制台显示报错

Uncaught TypeError: WEBPACK_IMPORTED_MODULE_1_vuex.a.store is not a constructor

解决办法:

将new Vuex.store中的“store”大写

new vuex.Store

 

转自:https://blog.csdn.net/qq_42475882/article/details/109965677

posted @ 2021-09-21 21:03  vba是最好的语言  阅读(2189)  评论(0)    收藏  举报