美文网首页微信开发运营微信小程序开发
微信小程序 缺少文件,错误信息:error: iconPath=

微信小程序 缺少文件,错误信息:error: iconPath=

作者: zsjoy | 来源:发表于2017-01-23 10:29 被阅读0次

当在使用tabBar时,"iconPath": "/image/icon_todo.png"。当生成预览的的时候会报下面的错误:

在微信的IDE的模拟器上运行时没有问题的,搜了一下原因是:

iconPath使用了以"/"开头的绝对路径,换成"image/***"相对路径就可以了。

相关文章

网友评论

    本文标题:微信小程序 缺少文件,错误信息:error: iconPath=

    本文链接:https://www.haomeiwen.com/subject/vghabttx.html