检查对应路径下的 source code 是否存在第二个 page({}) 解决办法:重新构建 source map 即可,tools --> build npm,不管用的话可以构建完再退出开发者工具重新打开
微信开发者工具报错:Please do not register multiple Pages in[图片] 报错地方: [图片] [图片] pages/files/files.js是tabBar对应的页面,之前版本没有报错,最近更新之后就一直报错 在手机上预览就不会报错
2021-06-15这样写没错,但是在 jest 的执行环境中无法识别,需要使用 babel 进行转换
用jest做小程序测试的时候,如何引入外部的js中的Class类?我的utils文件夹下有个tool.js的 代码格式如下: class ToolMethod { f1(){} f2(){} } export { ToolMethod } 我在小程序正常的开发过程中的引用方法是: import { ToolMethod } from '../../utils/tool.js' const tool = new ToolMethod() 开发中没有遇到过问题 但是,在使用jest做小程序的自动化测试的中,我想对 tool.js 里的方法进行测试,沿用开发中的 上面的引用方法会报错 我想另一个文件中 user.test.js 中 引用 tool.js 我尝试的写法是: import { ToolMethod } from '../../utils/tool.js' const tool = new ToolMethod() 但是,这样的写法会报错, 不引用 tool.js的情况下正常 出错截图如下: [图片] 我想问的是: 我如何在 user.test.js 引用 tool.js 里的 类"ToolMethod" ,正确的格式应该是什么?
2021-01-02原因:第三方暂不支持使用 mimiprogram-ci 获取 sourcemap 解决方案:只能使用未绑定开发的小程序使用开发者工具上传后获取 sourcemap
mimiprogram-ci 下载 sourcemap 报错?使用 ci buildNpm 后 upload 再 downloadSourceMap,报错: appid: wx22ba106979af59dd 时间点:2020-12-17 10:00 miniprogram-ci 版本:1.0.94 机器人:1 错误信息: 手动修改源码添加 console.log 的错误信息: { errCode: -1, errMsg:'inner download source map fail with errcode: -80407, errmsg: ' } 未添加 console.log 的原始报错信息: (node:94767) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'sourcemap_list' of undefined at Promise (/Users/circle/code/xxx/node_modules/miniprogram-ci/dist/utils/sourcemap/getDevSourceMap.js:46:26) at process._tickCallback (internal/process/next_tick.js:68:7) (node:94767) 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:94767) [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-12-29@社区技术运营专员-娇华 @John von Neumann 使用 ci buildNpm 后 upload 再 downloadSourceMap,报错: appid: wx22ba106979af59dd 时间点:2020-12-17 10:00 miniprogram-ci 版本:1.0.94 机器人:1 错误信息: { errCode: -1, errMsg:'inner download source map fail with errcode: -80407, errmsg: ' } (node:94767) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'sourcemap_list' of undefined at Promise (/Users/circle/code/xxx/node_modules/miniprogram-ci/dist/utils/sourcemap/getDevSourceMap.js:46:26) at process._tickCallback (internal/process/next_tick.js:68:7) (node:94767) 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:94767) [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.
miniprogram-ci 下载 sourcemap 报错?{ errCode: -1, errMsg: 'inner download source map fail with errcode: -80407, errmsg: ' }
2020-12-17@社区技术运营专员-CJiang 使用 ci buildNpm 后 upload 再 downloadSourceMap,报错: appid: wx22ba106979af59dd 时间点:2020-12-17 10:00 miniprogram-ci 版本:1.0.94 机器人:1 错误信息: { errCode: -1, errMsg:'inner download source map fail with errcode: -80407, errmsg: ' } (node:94767) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'sourcemap_list' of undefined at Promise (/Users/circle/code/xxx/node_modules/miniprogram-ci/dist/utils/sourcemap/getDevSourceMap.js:46:26) at process._tickCallback (internal/process/next_tick.js:68:7) (node:94767) 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:94767) [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.
miniprogram-ci 无法拉取最近上传版本的sourceMap按照 官方ci文档 调用 getDevSourceMap 方法,控制台输出如下报错: (node:40494) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'sourcemap_list' of undefined at Promise (/Users/xxx/Desktop/xxapp/node_modules/_miniprogram-ci@1.0.72@miniprogram-ci/dist/utils/sourcemap/getDevSourceMap.js:41:30) at processTicksAndRejections (internal/process/task_queues.js:86:5) 2.7s (node:40494) 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) 2.7s (node:40494) [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. 2.7s 在源码 getDevSourceMap.js 中打印日志,发现请求 https://servicewechat.com/wxa/ci/get_dev_sourcemap 的回包是: {"errCode":-1,"errMsg":"inner download source map fail with errcode: -80407, errmsg: "} 注: miniprogram-ci版本1.0.72在macos和linux上运行,都是这个报错
2020-12-17已解决 临时文件不能直接用来上传,临时文件的格式会发生改变临时文件需要保存到本地再上传微信服务器
新增临时素材 api 传了 type 依然返回 invalid file type?调用新增临时素材接口 [新增临时素材文档](https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/New_temporary_materials.html) 请求公众号 appid:wx873dbaf75000ac21 发送给微信 request 日志: [2020-09-12T11:43:40.371956+08:00] EasyWeChat.DEBUG: >>>>>>>> POST /cgi-bin/media/upload?access_token=37_h8Xv_UHJCXAJssssssssssssssssDbXKyiBU55itslo_xBwtBxJOnknCsxxxxxxxxxE_Y8aPIMjYcdfnnbdQBvViFBhmfK3lmK455nwqFx5TCOi07oEFRF3ftfNApYtVGEfAGAALJ&type=image HTTP/1.1 Host: api.weixin.qq.com Transfer-Encoding: chunked Expect: 100-Continue User-Agent: GuzzleHttp/6.5.3 curl/7.64.0 PHP/7.4.4 Content-Type: multipart/form-data; boundary=6195f8d68ae6bb62fcad807e3eee53863d6afce8 --6195f8d68ae6bb62fcad807e3eee53863d6afce8 Content-Disposition: form-data; name="media"; filename="acca2e04df8afce3e2a8cfe0994cdf70.jpg" Content-Type: image/jpeg �PNG ��� 微信服务器 response 日志: <<<<<<<< HTTP/1.1 200 OK Connection: keep-alive Content-Type: text/plain Date: Sat, 12 Sep 2020 03:55:08 GMT Content-Length: 101 {"errcode":40005,"errmsg":"invalid file type hint: [my2sOa09080020] rid: 5f5c469c-683a1d13-02d51118"} -------- NULL 已确认 access_token 和文件是 ok 的,用微信的接口调试工具请求如下: [图片] @微信官方,请问是什么原因?
2020-09-12改地址经测试发送请求是可以接收到响应的
消息与事件接收地址未收到 component_verify_ticket 推送?第三方平台 appid: wx4537f49de7d7f538 推送接收地址:https://test.askinchoice.com/api/v1/$APPID$/callback
2020-05-11