關於vuex的錯誤

魔域發表於2018-05-23

 Uncaught TypeError: __WEBPACK_IMPORTED_MODULE_1_vuex__.a.store is not a constructor
    at eval (main.js?1c90:18)
    at Object../src/main.js (app.js:2247)
    at __webpack_require__ (app.js:708)
    at fn (app.js:113)
    at Object.0 (app.js:2272)
    at __webpack_require__ (app.js:708)
    at app.js:806
    at app.js:809
複製程式碼

造成這樣的報錯可能是 new Vuex.store(stores) 中的Vuex.store 的s小寫了,,應該是這樣Vuex.Store


相關文章