收藏
回答

插件页面使用的组件如果设置componentPlaceholder 会报错?

在基础库 3.1.5 和 3.2.5 上, 插件仓库本身的demo跑起来没问题,但是在宿主小程序上跳转插件页面后白屏, Android控制台没报错信息, iOS设备上报错:

SystemError (webviewScriptError)Framework inner error (expect END descriptor with depth 0 but get FLOW_DATA_OBSERVER)Error: Framework inner error (expect END descriptor with depth 0 but get FLOW_DATA_OBSERVER)......

从社区类似报错解决方案看大概率是组件某些写法的问题, 调试了十几个组件后发现好像是设置了 componentPlaceholder的锅, 去掉后就能正常显示, 不去掉即便是个空组件都会报错白屏.

回答关注问题邀请回答
收藏
登录 后发表内容