uniapp项目安装pinia2.1版本后,编译项目报错"hasInjectionContext" is not exported by "node_modules/vue-demi/lib/index.mjs", imported by "node_modules/pinia/dist/pinia.mjs".
解决方法:
将pinia的版本改成2.0.36,重新编译,就不报错了
uniapp项目安装pinia2.1版本后,编译项目报错"hasInjectionContext" is not exported by "node_modules/vue-demi/lib/index.mjs", imported by "node_modules/pinia/dist/pinia.mjs".
解决方法:
将pinia的版本改成2.0.36,重新编译,就不报错了