“hasInjectionContext“ is not exported by “node_modules/pinia/node_modules/vue-demi/lib/index.mjs“, i_hasinjectioncontext" is not exported by "node_modu-CSDN博客
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,重新编译,就不报错了