关于Vue3中调试APP触发异常:exception:white screen cause create instanceContext failed,check js stack -> at useStore (app-service.js:2309:15)解决方案
项目环境:Vue3+Pinia+Vite3 uni-app 平台
原因描述
主要问题是因为:使用了pinia,并且在所有js文件或ts文件中调用超前,导致的加载错误
解决方案:
解决方案:只需要在全部的JS文件中检查跟store相关的语句,如下图操作:
页面内需要在setup内使用暂时未发现问题
但是一定要把所有在js文件中的store修改下,否则就是会报这个bug