uniapp项目安装pinia2.1版本后,编译项目报错“hasInjectionContext“ is not exported by “node_modules/vue-demi/lib/inde

“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,重新编译,就不报错了

uniapp项目安装pinia2.1版本后,编译项目报错“hasInjectionContext“ is not exported by “node_modules/vue-demi/lib/inde_第1张图片

你可能感兴趣的:(vue.js,uni-app,前端)