uniapp+vue3+ts 使用pinia报错

"hasInjectionContext" is not exported by "node_modules/vue-demi/lib/index.mjs", imported by "node_modules/pinia/dist/pinia.mjs". 11:36:19.397 at ../node_modules/pinia/dist/pinia.mjs:6:9

解决方法:

把pinia 降级 

先删除pinia

npm uni pinia

再重新安装

yarn add [email protected] 

你可能感兴趣的:(uni-app)