Vue采坑:TypeError: __WEBPACK_IMPORTED_MODULE_1_vuex__.a.store is not a constructor

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_27695659/article/details/88325514
const store = new Vuex.store({
	state:{
		allList:[],
		note:{
			title:'',
			content:'',
			markdown:''
		}

	},
是因为尝试将不是构造器的对象或者变量来作为构造器使用。参考 constructor 或者 new operator 来了解什么是构造器。

因为Store的S小写了。

猜你喜欢

转载自blog.csdn.net/qq_27695659/article/details/88325514