project.miniapp.json 切到文本模式把报错的那行删掉,还有工具的版本是多少?
多端应用在构建应用打包生成的时候报错?ENOENT: no such file or directory, open 'E:\测试\测试考勤\unpackage\dist\build\mp-weixin\{"androidExtendedSdkVersion":{"tpush":{"1.0.1":{"version":"1.0.1","minMainSdk":"1.0.4","updateTime":1689563793508},"1.0.2":{"version":"1.0.2","minMainSdk":"1.0.4","updateTime":1689563793508},"1.0.3":{"version":"1.0.3","updateTime":1692952354829,"minMainSdk":"1.0.4"},"1.0.4":{"version":"1.0.4","updateTime":1693365824867,"minMainSdk":"1.0.4"},"1.0.5":{"version":"1.0.5","updateTime":1697595323126,"minMainSdk":"1.0.4"},"1.0.6":{"version":"1.0.6","updateTime":1697687051059,"minMainSdk":"1.0.4"}},"map":{"1.0.0":{"version":"1.0.0","updateTime":1689679668620,"minMainSdk":"1.0.7"},"1.0.1":{"version":"1.0.1","updateTime":1695289129405,"minMainSdk":"1.0.7"},"1.2.0":{"version":"1.2.0","updateTime":1703040905923,"minMainSdk":"1.2.0"},"1.2.1":{"version":"1.2.1","updateTime":1717659346470,"minMainSdk":"1.2.0"}}},"sdkVersionList":{"ios":{"defaultVersion":"1.2.13","version":[{"version":"1.3.28","wxapplibVersion":"3.2.5-28","updateTime":1718789665},{"version":"1.3.27","wxapplibVersion":"3.2.5-27","updateTime":1718267614},{"version":"1.3.26","wxapplibVersion":"3.2.5-26","updateTime":1718175939},{"version":"1.3.25","wxapplibVersion":"3.2.5-25","updateTime":1717746506},{"version":"1.3.24","wxapplibVersion":"3.2.5-25","updateTime":1717733758},{"version":"1.3.23","wxapplibVersion":"3.2.5-25","updateTime":1717726852},{"version":"1.3.22","wxapplibVersion":"3.2.5-25","updateTime":1717504094},{"version":"1.3.21","wxapplibVersion":"3.2.5-25","updateTime":1717488987},{"version":"1.3.20","wxapplibVersion":"3.2.5-23","updateTime":1717072779},{"version":"1.3.19","wxapplibVersion":"3.2.5-21","updateTime":1716985068},{"version":"1.3.18","wxapplibVersion":"3.2.5-17","updateTime":1716953932},{"version":"1.3.17","wxapplibVersion":"3.2.5-16","updateTime":1716794731},{"version":"1.3.16","wxapplibVersion":"3.2.5-14","updateTime":1716373900},{"version":"1.3.15","wxapplibVersion":"3.2.5-13","updateTime":1716288867},{"version":"1.3.14","wxapplibVersion":"3.2.5-11","updateTime":1715958162},{"version":"1.3.13","wxapplibVersion":"3.2.5-9","updateTime":1715926815},{"version":"1.3.12","wxapplibVersion":"3.2.5-6","updateTime":1715768854},{"version":"1.3.11","wxapplibVersion":"3.2.5-6","updateTime":1715583378},{"version":"1.3.10","wxapplibVersion":"3.2.5-6","updateTime":1715224706},{"version":"1.3.9","wxapplibVersion":"3.2.5-6","updateTime":1714993798},{"version":"1.3.8","wxapplibVersion":"3.2.5-6","updateTime":1714373472},{"version":"1.3.7","wxapplibVersion":"3.2.5-6","updateTime":1714117951},{"version":"1.3.6","wxapplibVersion":"3.2.5-6","updateTime":1713874135},{"version":"1.3.5","wxapplibVersion":"3.2.5-5","updateTime":1713439001},{"version":"1.3.4","wxapplibVersion":"3.2.5-4","updateTime":1713268893},{"version":"1.3.3","wxapplibVersion":"3.2.5-4","updateTime":1713172895},{"version":"1.3.2","wxapplibVersion":"3.2.5-4","updateTime":1712922315},{"version":"1.3.1","wxapplibVersion":"3.2.5-4","updateTime":1712734909},{"version":"1.3.0","wxapplibVersion":"3.2.5-3","updateTime":1712556421},{"version":"1.2.26","wxapplibVersion":"3.2.5-3","updateTime":1712031598},{"version":"1.2.25","wxapplibVersion":"3.2.5-2","updateTime":1711356067},{"version":"1.2.24","wxapplibVersion":"3.0.2-14","updateTime":1710849609},{"version":"1.2.23","wxapplibVersion":"3.0.2-14","updateTime":1710762154},{"version":"1.2.22","wxapplibVersion":"3.0.2-14","updateTime":1710220462},{"version":"1.2.21","wxapplibVersion":"3.0.2-14","updateTime":1710157545},{"version":"1.2.20","wxapplibVersion":"3.0.2-14","updateTime":1710140714},{"version":"1.2.19","wxapplibVersion":"3.0.2-14","updateTime":1709880431},{"version":"1.2.18","wxapplibVersion":"3.0.2-14","updateTime":1709357029},{"version":"1.2.17","wxapplibVersion":"3.0.2-12","updateTime":1709100552},{"version":"1.2.16","wxapplibVersion":"3.0.2-11","updateTime":1708568653},{"version":"1.2.16","wxapplibVersion":"3.0.2-11","updateTime":1708568343},{"version":"1.2.15","wxapplibVersion":"3.0.2-10","updateTime":1706671102},{"version":"1.2.14","wxapplibVersion":"3.0.2-9","updateTime":1705671449},{"version":"1.2.13","wxapplibVersion":"3.0.2-8","updateTime":1705305968},{"version":"1.2.12","wxapplibVersion":"3.0.2-6","updateTime":1704346790,"hidden":true},{"version":"1.2.11","wxapplibVersion":"3.0.2-3","updateTime":1703470893},{"version":"1.2.10","wxapplibVersion":"3.0.2-2","updateTime":1702981673},{"version":"1.2.9","wxapplibVersion":"3.0.2-1","updateTime":1702605684},{"version":"1.2.8","wxapplibVersion":"3.0.2-3","updateTime":1702434291},{"version":"1.2.7","wxapplibVersion":"3.0.2-1","updateTime":1702284267},{"version":"1.2.6","wxapplibVersion":"3.0.2-2","updateTime":1702003932},{"version":"1.2.5","wxapplibVersion":"3.0.1-2","updateTime":1701689841},{"version":"1.1.14","wxapplibVersion":"2.27.3-7","updateTime":1701325480},{"version":"1.1.13","wxapplibVersion":"2.27.3-7","updateTime":1701139418},{"version":"1.1.12","wxapplibVersion":"2.27.3-7","updateTime":1701078499},{"version":"1.1.11","wxapplibVersion":"2.27.3-6","updateTime":1700807925},{"version":"1.1.10","wxapplibVersion":"2.27.3-6","updateTime":1700485078},{"version":"1.1.9","wxapplibVersion":"2.27.3-6","updateTime":1700463275},{"version":"1.1.8","wxapplibVersion":"2.27.3-6","updateTime":1700233676},{"version":"1.1.7","wxapplibVersion":"2.27.3-6","updateTime":1700192880},{"version":"1.1.6","wxapplibVersion":"2.27.3-6","updateTime":1700045912},{"version":"1.1.5","wxapplibVersion":"2.27.3-6","updateTime":1700015184},{"version":"1.1.4","wxapplibVersion":"2.27.3-6","updateTime":1699603235},{"version":"1.1.3","wxapplibVersion":"2.27.3-4","updateTime":1698205860,"hidden":true},{"version":"1.1.2","wxapplibVersion":"2.27.3-4","updateTime":1698205860},{"version":"1.1.1","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.1.0","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.32","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.31","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.30","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.29","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.28","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.27","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.26","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.25","wxapplibVersion":"2.27.3-4","updateTime":1697442475445,"hidden":true},{"version":"1.0.24","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.23","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.22","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.21","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.20","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.19","wxapplibVersion":"2.27.3-4","updateTime":1697442475445,"hidden":true},{"version":"1.0.18","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.17","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.16","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.15","wxapplibVersion":"2.27.3-4","updateTime":1697442475445,"hidden":true},{"version":"1.0.14","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.13","wxapplibVersion":"2.27.3-4","updateTime":1697442475445,"hidden":true},{"version":"1.0.12","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.11","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.10","wxapplibVersion":"2.27.3-4","updateTime":1697442475445,"hidden":true},{"version":"1.0.9","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.8","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.7","wxapplibVersion":"2.27.3-4","updateTime":1697442475445,"hidden":true},{"version":"1.0.6","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.5","wxapplibVersion":"2.27.3-4","updateTime":1697442475445}]},"android":{"defaultVersion":"1.2.9","version":[{"version":"1.3.19","wxapplibVersion":"3.2.5-28","updateTime":1718628394},{"version":"1.3.18","wxapplibVersion":"3.2.5-25","updateTime":1718105495},{"version":"1.3.17","wxapplibVersion":"3.2.5-25","updateTime":1717658176},{"version":"1.3.16","wxapplibVersion":"3.2.5-24","updateTime":1717154044},{"version":"1.3.15","wxapplibVersion":"3.2.5-18","updateTime":1716969593},{"version":"1.3.14","wxapplibVersion":"3.2.5-14","updateTime":1716807766},{"version":"1.3.13","wxapplibVersion":"3.2.5-14","updateTime":1716358713},{"version":"1.3.12","wxapplibVersion":"3.2.5-13","updateTime":1716283831},{"version":"1.3.11","wxapplibVersion":"3.2.5-11","updateTime":1715959430},{"version":"1.3.10","wxapplibVersion":"3.2.5-6","updateTime":1715238257},{"version":"1.3.9","wxapplibVersion":"3.2.5-6","updateTime":1715064545},{"version":"1.3.8","wxapplibVersion":"3.2.5-6","updateTime":1714445145},{"version":"1.3.7","wxapplibVersion":"3.2.5-6","updateTime":1713925083},{"version":"1.3.6","wxapplibVersion":"3.2.5-4","updateTime":1713266654},{"version":"1.3.5","wxapplibVersion":"3.2.5-4","updateTime":1712918432},{"version":"1.3.4","wxapplibVersion":"3.2.5-3","updateTime":1712023966},{"version":"1.3.3","wxapplibVersion":"3.2.5-3","updateTime":1711630574},{"version":"1.3.2","wxapplibVersion":"3.2.5-3","updateTime":1711609253},{"version":"1.3.1","wxapplibVersion":"3.2.5-3","updateTime":1711520766},{"version":"1.3.0","wxapplibVersion":"3.2.5-3","updateTime":1711461108},{"version":"1.3.0","wxapplibVersion":"3.2.5-3","updateTime":1711461049},{"version":"1.2.21","wxapplibVersion":"3.2.5-2","updateTime":1711108563},{"version":"1.2.20","wxapplibVersion":"3.0.2-14","updateTime":1710853462},{"version":"1.2.19","wxapplibVersion":"3.0.2-14","updateTime":1710745270},{"version":"1.2.18","wxapplibVersion":"3.0.2-14","updateTime":1710143375},{"version":"1.2.17","wxapplibVersion":"3.0.2-13","updateTime":1709276411},{"version":"1.2.16","wxapplibVersion":"3.0.2-11","updateTime":1708651401},{"version":"1.2.15","wxapplibVersion":"3.0.2-11","updateTime":1708236721},{"version":"1.2.14","wxapplibVersion":"3.0.2-10","updateTime":1706519728},{"version":"1.2.13","wxapplibVersion":"3.0.2-10","updateTime":1706251775},{"version":"1.2.12","wxapplibVersion":"3.0.2-9","updateTime":1706008324},{"version":"1.2.11","wxapplibVersion":"3.0.2-9","updateTime":1705976461},{"version":"1.2.10","wxapplibVersion":"3.0.2-9","updateTime":1705554075},{"version":"1.2.9","wxapplibVersion":"3.0.2-8","updateTime":1705474861},{"version":"1.2.8","wxapplibVersion":"3.0.2-8","updateTime":1705049419},{"version":"1.2.7","wxapplibVersion":"3.0.2-7","updateTime":1704693789,"hidden":true},{"version":"1.2.6","wxapplibVersion":"3.0.2-6","updateTime":1704268803},{"version":"1.2.5","wxapplibVersion":"3.0.2-5","updateTime":1704179239},{"version":"1.2.4","wxapplibVersion":"3.0.2-4","updateTime":1703742968},{"version":"1.2.3","wxapplibVersion":"3.0.2-4","updateTime":1703583856},{"version":"1.2.2","wxapplibVersion":"3.0.2-3","updateTime":1703504440},{"version":"1.2.1","wxapplibVersion":"3.0.2-3","updateTime":1703145403},{"version":"1.2.0","wxapplibVersion":"3.0.2-1","updateTime":1702901534},{"version":"1.1.11","wxapplibVersion":"2.27.3-11","updateTime":1702539822},{"version":"1.1.10","wxapplibVersion":"2.27.3-11","updateTime":1702439601},{"version":"1.1.9","wxapplibVersion":"2.27.3-9","updateTime":1702020848},{"version":"1.1.8","wxapplibVersion":"2.27.3-8","updateTime":1701940452},{"version":"1.1.7","wxapplibVersion":"2.27.3-8","updateTime":1701776480},{"version":"1.1.6","wxapplibVersion":"2.27.3-8","updateTime":1701694106},{"version":"1.1.5","wxapplibVersion":"2.27.3-7","updateTime":1701337493},{"version":"1.1.4","wxapplibVersion":"2.27.3-6","updateTime":1700720268},{"version":"1.1.3","wxapplibVersion":"2.27.3-6","updateTime":1700120757},{"version":"1.1.2","wxapplibVersion":"2.27.3-5","updateTime":1699528629},{"version":"1.1.1","wxapplibVersion":"2.27.3-4","updateTime":1698134541},{"version":"1.1.0","wxapplibVersion":"2.27.3-4","updateTime":1698134541},{"version":"1.0.21","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.20","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.19","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.18","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.17","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.16","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.15","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.14","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.13","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.12","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.11","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.10","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.9","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.8","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.7","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.6","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.5","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.4","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.3","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.2","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.1","wxapplibVersion":"2.27.3-4","updateTime":1697442475445},{"version":"1.0.0","wxapplibVersion":"2.27.3-4","updateTime":1697442475445}]}}}' [图片]
06-20不支持传递 function 为参数。
微信小程序自动化page.callMethod 调用页面指定方法arrayhttps://developers.weixin.qq.com/miniprogram/dev/devtools/auto/quick-start.htmlhttps://developers.weixin.qq.com/miniprogram/dev/devtools/auto/ 微信小程序自动化page.callMethod 调用页面指定方法 ...args 传递的参数为 function 为何接收的是string
2023-08-09这边没法复现,麻烦提供下能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
频繁出现[渲染层网络层错误] Failed to load xmlhttprequest,为什么?也不知道从什么时候开始,可能是升级了微信开发工具后。频繁出现下面的错误。这错误是哪里来的?好像一直调用,错误次数不停增加。对程序运行貌似没有影响。但是看上去很吓人。 [渲染层网络层错误] Failed to load xmlhttprequest https://7778-wx-ob-1gs2fysf0614a599-1317926683.cos.ap-shanghai.myqcloud.com/wx35974a954dc3abff/common/210383019687 the server responded with a status of 403 (HTTP/1.1 403 Forbidden) From server 112.86.231.45(env: Windows,mp,1.06.2306020; lib: 2.31.0)
2023-07-31问题已复现,我们会在后续版本中进行修复。
TCPSocket.onMessage断开连接,再重连后.onMessage消息重复?用户主动断开后,再重连,onMessage消息重复出现 [图片] //TCP连接 按键 connectSocketFunciton() { var that = this var address = that.globalData.inputIP var port=that.globalData.inputPort console.log(address,port) tcp.connect({ address:address, port:port, timeout:3, }) tcp.onError((e)=>{ console.log(e) let iszhuangtai=false that.callzt(iszhuangtai) wx.showToast({ title: "连接失败", icon: 'none', duration: 2000,//持续的时间 }) }) //TCP监听 tcp.onMessage((e)=>{ var util=require('pages/utils/util.js') var that = this var time= util.formatDate(new Date()); // console.log(e.message) var jieshou= e.remoteInfo var buffer = e.message; var dataview = new DataView(buffer); var ints = new Uint8Array(buffer.byteLength); var str = '',ceshi=''; for (var i = 0; i < ints.length; i++) { str+= String.fromCharCode(dataview.getUint8(i)); } console.log("直接接受的消息,未处理",e) console.log(str ,jieshou) var shuju="@["+jieshou.address+"]-" +time+':\n'+ str this.globalData.message=shuju // if (this.onMessage) this.onMessage(shuju); that.callback(shuju) return str }) }, //断开连接 tcpcloce(res){ var that =this tcp.close() //this.onMessage =null // tcp.onMessage = null; that.globalData.iszhuangtai = false wx.showToast({ title: "连接断开", icon: 'none', duration: 2000,//持续的时间 }) },
2023-06-25minium的问题,可以到小程序云测专区提问 https://developers.weixin.qq.com/community/minihome/mixflow/2315318279491616771
minium框架的配置文件config.json,如何配置多个小程序?我现在的使用场景是: 我的自动化用例 要调用多个小程序,如何配置呢 [图片]
2022-12-13工具上试下关闭启用独立域调试选项看能不能行
自动化测试 mockWxMethod(request) 报错 _from、_promise 未定义const path = require('path'); const automator = require('miniprogram-automator'); let e2eRc = require(path.resolve(process.cwd(), '.e2erc.js')); let timer = null; jest.setTimeout(30000000); describe('minitest-2', () => { let miniProgram; beforeAll(async () => { miniProgram = await automator.launch({ projectPath: e2eRc.projectPath, }); }, 30000000); afterAll(async () => { clearInterval(timer); await miniProgram.disconnect(); }); it('minitest-2', async () => { // request 不能 mock 了 await miniProgram.mockWxMethod( 'request', function(obj, platform) { console.log('typeof Promise ----->', typeof Promise); // 模拟器无输出 return new Promise((resolve, reject) => { this.origin({...obj, success (res) { resolve(res)} }); }) } ); let page; page = await miniProgram.currentPage(); await page.waitFor(10000); }); }); [图片]
2022-09-21这边确认过,wx.navigateBack 需要弹出提示框,开发工具这里后续会跟真机表现对齐。
wx.enableAlertBeforeUnload真机使用wx.navigateBack bug页面 onLoad 方法中 使用 wx.enableAlertBeforeUnload 当前页面使用 wx.navigateBack 返回上一页时 真机使用会弹出 提示框
2022-09-08这里低端机模拟会通过占用 cpu 让模拟器运行变慢,建议仅在需要测试的时候才开启该选项。
apple m1版本开启低端机模拟时cpu占用率飙升?运行环境: 微信开发者工具:[图片] 系统:[图片] 检测工具:istat menus 问题: 不打开低端机模拟时:开发工具后台cpu占用(不在编译状态)维持在0~80之间[图片] 打开低端机模拟时:cpu占用一直在180+[图片] 此时模拟器都处于不做任何操作、不打开项目、不编译代码的状态 希望官方能找一下这个bug修复一下,开发的时候如果开着低端机模拟选项掉电很快,还以为电脑坏掉了。。。
2022-08-03不会放开,有安全问题
小程序引入第三方插件,无法修改全局变量?背景:小程序运行时需要对Date变量进行修改 如: const OldDate = Date // 修改第一个入参,横岗改斜杠 Date = function () { if (arguments.length > 0 && typeof (arguments[0]) === 'string' && arguments[0].includes('-')) { const p = arguments[0].replace(/-/g, '/') arguments[0] = p } return new OldDate(...arguments) } 原文链接:https://blog.csdn.net/milugloomy/article/details/108701448 现象: 基础库2.13.0 开发者工具和真机都无法修改,且报错[non-writable] modification of global variable 'Date' is not allowed when using plugins at app.json,删除app.json中的plugins字段正常执行 基础库2.25.0 1.开发者工具模拟器,上述代码成功执行,此时是在app.json中有plugins字段 2.真机会报错,此时是在app.json中有plugins字段。删除plugins字段后,上述代码能正常执行 我理解的是,这个问题是由于小程序引入了第三方插件,导致的全局变量无法修改。 但是开发者工具模拟器已经开放了这个限制。想问下,真机后面是否也会开放限制 类似问题:https://developers.weixin.qq.com/community/develop/doc/0000680a848be8919f7b921c756400
2022-07-28跟项目有关吗?这边试了无法复现,麻烦提供下复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
1.06上传代码报错?升级到1.06后,上传代码报错如下: [图片] 经检查项目本身没有问题,是开发者工具的bug,回退到上一个1.05就正常了。 这种的bug难道都没有测试过就发布版本了吗,不理解。
2022-06-15