首页 前端知识 reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create

reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create

2024-09-10 23:09:50 前端知识 前端哥 708 346 我要收藏

vue3项目运行在微信小程序中正常,运行安卓手机上报错:

reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->
 at useStore2 (app-service.js:2397:15)
 at  (app-service.js:5860:21)
 at  (app-service.js:17532:3)

然后再网上搜了相关的解决方案:

有的说是热更新的问题:

真机调试 编写nvue文件reportJSException >>>> exception function:createInstanceContext - DCloud问答

有的说是运行内存占用太大:

reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create-CSDN博客

通过上面的方案试了还是没有解决

随后看到报错中有at useStore2 (app-service.js:2397:15),然后全局搜了userStore,发现有可能是pinia的问题,随后把我接口封装的pinia调用注释掉,解决了。

解决思路:可根据具体报错关键词全局搜索逐一排查

转载请注明出处或者链接地址:https://www.qianduange.cn//article/18073.html
标签
评论
发布的文章

关于HTML的知识

2024-09-18 23:09:36

js简单实现轮播图效果

2024-09-18 23:09:36

CSS3美化网页元素

2024-09-18 23:09:27

大家推荐的文章
会员中心 联系我 留言建议 回顶部
复制成功!