在 app.json 中声明通过 npm 安装的自定义组件有问题

发布于 7 年前作者 liangmin2649 次浏览最后编辑 7 年前来自 ask

app.json 中声明__通过 npm 安装的自定义组件__,在开发者工具上表现正常,在真机上会报错 Component is not found in path xxx

在页面的 json 文件中声明就没问题,在 app.json 里面声明非 npm 安装的自定义组件也没问题,用最新版的稳定版和 RC 版开发者工具都有这个问题

1 回复
mingxiong
mingxiong1 楼5 年前

你好,麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)