我的1.0.57了 还有这个问题 [图片]
miniprogram-ci 无法识别缺省的 index?使用 miniprogram-ci 预览小程序遇到的问题,用桌面版开发工具预览是没问题的 重现 demo:https://github.com/xxapp/miniprogram-issue // 目录结构 /components /list index.js index.json index.wxml /pages /index index.json // index 页面配置这样写会导致小程序打不开 { "usingComponents": { "my-list": "../../components/list" } } // 改成这样就可以了 { "usingComponents": { "my-list": "../../components/list/index" } }
2020-07-31楼主解决了吗?
miniprogram-ci 这个小程序官方包 在引入第三方库时,调用上传命令会报错官方文档: https://developers.weixin.qq.com/miniprogram/dev/devtools/ci.html 由于这个npm包代码未开源(代码压缩混淆了),没有相应的github 提bug区域,故此将bug提在这里 重现环境: miniprogram-ci 版本: 1.0.11、1.0.12 window10 企业版 64位系统 nodejs v10.16.3 npm 6.11.3 注意:mac os系统上没有此问题 最小可重现代码: https://github.com/bigmeow/miniprogram-ci-bug 重现步骤 1. 用小程序开发者工具新建立一个项目, npm init 2. 安装 `npm i @vant/weapp -S --production` 和 `npm i miniprogram-ci -D` 3. 编写 build.js, 修改其中的appid和私钥,后台关闭白名单 4. 运行命令 `node build.js` 问题 如果不引入第三方库,构建npm和上传都成功; 引入了第三方库,构建npm成功,上传失败报错;但是直接点击小程序开发者工具的上传则无问题 [图片] 报错代码: "miniprogram-ci": "1.0.11" 版本错误信息: (node:21612) UnhandledPromiseRejectionWarning: Error: ["usingComponents"]["van-icon"]: "../icon/ind ex" not found at Object.throwError (C:\project\github\bug\node_modules\miniprogram-ci\dist\utils\common.js:1: 274) at _checkComponentPath (C:\project\github\bug\node_modules\miniprogram-ci\dist\json\common.js:1 :2012) at Object.exports.checkComponentPath.t [as checkComponentPath] (C:\project\github\bug\node_modu les\miniprogram-ci\dist\json\common.js:1:2427) at checkComponentPath (C:\project\github\bug\node_modules\miniprogram-ci\dist\json\page\page.js :1:1537) at compilePageJSON (C:\project\github\bug\node_modules\miniprogram-ci\dist\json\page\page.js:1: 2249) (node:21612) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated e ither by throwing inside of an async function without a catch block, or by rejecting a promise whic h was not handled with .catch(). (rejection id: 1) (node:21612) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the futu re, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. "miniprogram-ci": "1.0.12" 、 "miniprogram-ci": "1.0.13"、 "miniprogram-ci": "1.0.14" 版本错误信息: (node:23640) UnhandledPromiseRejectionWarning: Error: ["usingComponents"]["van-icon"]: "../icon/index" not found at Object.throwError (C:\project\github\bug\node_modules\miniprogram-ci\dist\utils\common.js:1:274) at _checkComponentPath (C:\project\github\bug\node_modules\miniprogram-ci\dist\json\common.js:1:2120) at Object.exports.checkComponentPath.t [as checkComponentPath] (C:\project\github\bug\node_modules\miniprogram-ci\dist\json\common.js:1:2535) at checkComponentPath (C:\project\github\bug\node_modules\miniprogram-ci\dist\json\page\page.js:1:1537) at compilePageJSON (C:\project\github\bug\node_modules\miniprogram-ci\dist\json\page\page.js:1:2249) (node:23640) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:23640) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. 2020年03月31日0.05分更新: "miniprogram-ci": "1.0.18" 版本已经解决上述问题,又发现一个新的问题,在上传时打印的日志: [图片] 找到出解析出问题的那段: [图片] 是 第三库里的wxml文件里直接写wxs 才会出现?
2020-07-31