引入本地公共组件白屏
发布于 6 年前 作者 jinli 5637 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

    安卓打不开小程序,IOS首页白屏

  • 预期表现

正常显示、执行命令

  • 复现路径
  • 提供一个最简复现 Demo

“usingComponents”: {

“i-input”: “dist/input/index”,

“i-panel”: “dist/panel/index”,

“i-toast”: “dist/toast/index”,

“i-button”: “dist/button/index”,

“i-cell-group”: “dist/cell-group/index”,

“i-cell”: “dist/cell/index”

}

加上本地公用的组件就打不开,删掉就可以,之前版本是可以使用的,好像又数量限制,现在一个都不行

2 回复

我也遇到类似问题,在app.json引用组件,页面组件不生效,白屏,然后我在页面json的usingComponents引用相应的组件才解决,但并没有删掉

app.json 里面的 usingComponents 属性

回到顶部