微信开发者工具
代码还未编译就报错 [渲染层错误] Framework TypeError: LifeCycle.start fail: Cannot read property 'split' of undefined(env: Windows,mp,1.06.2503290; lib: 3.7.12) [渲染层错误] TypeError: SystemError (webviewSDKScriptError) LifeCycle.start fail: Cannot read property 'split' of undefined(env: Windows,mp,1.06.2503290; lib: 3.7.12) 基本我的所有项目都报这个问题,然后使用wx.navigateTo({ url: 'plugin://chooseLocation/index?key=' + key + '&referer=' + referer + '&location=' + location + '&category=' + category }); 方法打开腾讯地图白屏并报错 [渲染层错误] Framework TypeError: LifeCycle.start fail: Cannot read property 'split' of undefined(env: Windows,mp,1.06.2503290; lib: 3.7.12) [渲染层错误] TypeError: SystemError (webviewSDKScriptError) LifeCycle.start fail: Cannot read property 'split' of undefined(env: Windows,mp,1.06.2503290; lib: 3.7.12) TypeError: Cannot read property 'version' of undefined at Jr (VM54 WASubContext.js:1) at Kn (VM54 WASubContext.js:1) at Jn (VM54 WASubContext.js:1) at Jn (VM54 WASubContext.js:1) at Jn (VM54 WASubContext.js:1) at bo.createInstance (VM54 WASubContext.js:1) at b._advancedCreate (VM54 WASubContext.js:1) at Function.b.createWithGenerics (VM54 WASubContext.js:1) at Bi (VM54 WASubContext.js:1) at Module.rs (VM54 WASubContext.js:1)(env: Windows,mp,1.06.2503290; lib: 3.7.12) routeDone with a webviewId 4 that is not the current page(env: Windows,mp,1.06.2503290; lib: 3.7.12) 版本库升级降级没有反应 补充一下: 1.版本号是1.06.2503290 2.真机没问题
申请开通wx.getLocation接口,为什么一直审核不通过?腾讯总是说:申请的wx.getLocation接口因你提供的申请原因/辅助图片/网页/视频内容无法确认申请接口使用场景审核不通过,请问小程序申请接口相关使用场景的完整录屏(含小程序昵称)重新提交审核。【请把模版案例发一份参考】
软件出现的问题可以通过视频进行查看。只能插入腾讯视频,所以我只能提供视频下载链接了。https://www.alipan.com/s/dTeYg2a8X8M 工具版本号:1.06.2412050 操作系统:Windows 11 专业版(26100.3775) 显卡:NVIDIA GeForce RTX 4060 Ti(驱动版本:572.83) 其他说明:项目使用的是Hbuilder X编译运行的,版本是4.57
我注册了小程序,在使用微信开发者工具时出现了这个错误,在微信开放社区里有同样的问题(下面的链接),我申请小程序,用我的邮箱显示已注册,但是我登陆了就显示成公众号了。对于一个使用微信开发工具的新人,我不知道要怎么解决。 https://developers.weixin.qq.com/community/minihome/doc/000e887b608518eee8b198e9766800 [图片]
反复改也改不对,是不是小游戏和小程序要求不一样。0基础,只会AI,之前创建小程序没问题
我第一次学习微信小程序开发的云函数 创建第一个云函数workerDataGet,内容为: // 云函数入口文件 const cloud = require('wx-server-sdk') cloud.init({ env: cloud.DYNAMIC_CURRENT_ENV }) // 使用当前云环境 const db=cloud.database(); // 云函数入口函数 exports.main = async (event, context) => { var num=event.num; return await db.collection("workerList").limit(num).get().then() } 在页面的js文件中,编写了获取数据的函数 getData(){ wx.cloud.callFunction({ name:"workerDataGet", data:{ num:10 } }).then(res=>{ console.log(res) }) }, 当触发调用时,系统出现错误提示 Error: cloud.callFunction:fail Error: errCode: -504002 functions execute fail | errMsg: Error: Cannot find module 'wx-server-sdk' 请问老师哪里出现问题,如何解决?
这是我用公众号api发布图片内容草稿,然后再调用api进行发布后,在发表记录看到的页面 [图片] 而如果我还是用同个api发布图片内容草稿,然后去公众号后台手动进去这个草稿,直接点击发布,则可以看到“精选”和推荐。 [图片] 下面是发布代码。保存草稿部分应该是没问题的,因为我如果保存草稿后不调用api发布,在后台可以看到草稿,然后直接用后台发布是正常的,api则不行 /** * 发布已保存的草稿 * @param accessToken 接口调用凭证 * @param mediaId 草稿的媒体ID * @return 微信API响应结果 * @throws IOException */ public static JsonObject submitFreePublish(String accessToken, String mediaId) throws IOException { // 1. 构建请求体 JsonObject requestBody = new JsonObject(); requestBody.addProperty("media_id", mediaId); // 2. 创建HTTP请求 Request request = new Request.Builder() .url("https://api.weixin.qq.com/cgi-bin/freepublish/submit?access_token=" + accessToken) .post(RequestBody.create(JSON,requestBody.toString())) .build(); // 3. 发送请求并处理响应 try (Response response = client.newCall(request).execute()) { String responseBody = response.body().string(); JsonObject jsonResponse = new JsonParser().parse(responseBody).getAsJsonObject(); // 4. 错误处理 int errcode = jsonResponse.get("errcode").getAsInt(); if (errcode != 0) { String errmsg = jsonResponse.get("errmsg").getAsString(); throw new IOException("微信接口错误 [" + errcode + "]: " + errmsg); } System.out.println("发布成功:"+jsonResponse); return jsonResponse; } }
这是电脑端打开下程序的界面,可以正常播放视频 [图片] 这是手机端打开,黑屏无法播放,点击没有反应: [图片] 这是啥问题了,求大佬救我?
代码: 打开APP查看 export default { data() { return { isWeiXin:true, }; }, mounted() { // 检查微信 SDK 是否加载 console.log('检查微信 SDK 是否加载',window.wx); // 检查按钮 DOM 是否存在 console.log('检查按钮 DOM ',document.getElementById('launch-btn')); // 检查微信 SDK 配置 console.log('当前URL:', window.location.href.split('#')[0]); if(this.isWeiXin){ const btn = document.getElementById('launch-btn'); this.handleSdk() } }, methods: { handleSdk(){ var urls = window.location.href.split('#')[0]; this.$axios.post('/oss/wechatAuth/h5JumpMini', { url: urls }).then((res) => { console.log(res) if (res.data.rel) { wx.config({ debug: true, // 开启调试模式,调用的所有 api 的返回值会在客户端 alert 出来,若要查看传入的参数,可以在 pc 端打开,参数信息会通过 log 打出,仅在 pc 端时才会打印 appId: res.data.data.appId, // 必填,公众号的唯一标识 timestamp: res.data.data.timestamp, // 必填,生成签名的时间戳 nonceStr: res.data.data.nonceStr,// 必填,生成签名的随机串 signature: res.data.data.signature,// 必填,签名 jsApiList: ["wx-open-launch-app","onMenuShareAppMessage", "onMenuShareTimeline"], // 必填,随意一个接口即可 , // 必填,需要使用的 JS 接口列表 openTagList: ["wx-open-launch-app"], // 关键!必须声明开放标签 }) wx.checkJsApi({ jsApiList: ['wx-open-launch-app'], // 校验跳转APP的标签是否可用 success: function (res) { console.log('可用') }, fail: (err) => { console.log(err, '不可用') } }) wx.error(function (res) { console.log(res, 'error'); // config信息验证失败会执行error函数,如签名过期导致验证失败,具体错误信息可以打开config的debug模式查看,也可以在返回的res参数中查看,对于SPA可以在这里更新签名 }); } } }) }, onListenLaunchError(e) { // window.location.replace('应用商店地址'); }, handlelaunch(){ console.log('链接跳转'); }, }, };
工具版本: 1.06.2504282 win32-x64 将二级页面添加为编译模式,点击返回按钮闪退 视频地址:我用夸克网盘分享了「2025-04-30 17-30-23.mkv」,点击链接即可保存。打开「夸克APP」,无需下载在线播放视频,畅享原画5倍速,支持电视投屏。 链接:https://pan.quark.cn/s/92dfa3805204
官方小程序模板的图片现在突然都访问不到了,不知道是资源换了链接,还是服务器出现了问题,请看一下,大致罗列了如下几个: https://cdn-we-retail.ym.tencent.com/miniapp/template/user-center-bg-v1.png https://cdn-we-retail.ym.tencent.com/miniapp/usercenter/icon-user-center-avatar@2x.png https://cdn-we-retail.ym.tencent.com/miniapp/order/empty-order-list.png https://cdn-we-retail.ym.tencent.com/miniapp/template/order-bg.png [图片]
想请问下,我之前点击“预览”可以真机查看,但是现在一直出现如下报错,找cursor改了好几次,每次都是改了后面忘了前面,不太清楚这个问题是什么呀,大佬能解释下嘛[图片]
小弟我刚刚做微信小程序,里面有个播放语音的本来很高兴在微信开发者工具里都正常了,结果放到手机预览的时候坏菜了,也没有错误,就是播放不出来。 补充一下,我为了测试在assets文件加下放了一个测试mp3.然后代码改成了: this.currentAudioContext.src = '/assets/test.mp3'; this.currentAudioContext.play(); 还是不出声音,用预览模式用的ipthon16 pro max测试的。 我的日志:[图片] 我的代码: playVoice() { if (!this.data.audioPath) { console.error('音频路径无效'); this.showErrorToast('暂无有效音频'); return; } // 停止当前播放 if (this.currentAudioContext) { this.currentAudioContext.stop(); this.currentAudioContext.destroy(); } // 创建新的音频上下文 this.currentAudioContext = wx.createInnerAudioContext(); this.currentAudioContext.obeyMuteSwitch = false; // 错误处理 this.currentAudioContext.onError((res) => { console.error('播放错误:', { errCode: res.errCode, errMsg: res.errMsg, path: this.data.audioPath }); this.showErrorToast(this.getPlayErrorMsg(res.errCode)); }); this.currentAudioContext.onPlay(() => { console.log('音频开始播放:', this.data.audioPath); }); console.log('尝试播放音频:', this.data.audioPath); this.currentAudioContext.src = this.data.audioPath; this.currentAudioContext.play(); }, 愁的我都睡不着了,咋办呢?
通过微信公众号-互动管理-智能回复-知识库,上传文件(word、PDF等),上传完以后,有的提示文件太大了,我就进行了文件压缩,不到5M,还是上传失败,有的却能上传成功,不知道什么原因,另外,上传成功后的知识库,智能回复无法正常使用,根本采集不到知识库里的文件信息,无法进行AI解答[图片] [图片]
https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/scene/shipinhao.html
https://developers.weixin.qq.com/doc/store/shop/API/order/delivery_send.html 订单处于待发货状态,为什么会失败? 更新失败: 更新物流信息失败,错误码: 101100, 错误信息: , 订单状态错误,不允许执行此操作 rid: 68145bae-34ee4f81-654a4c60
https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html[图片]提示[图片]
最新的开发者工具包,开发工具里面能正确执行,之前也成功部署到手机上测试,更新后,突然有这个报错。 message:真机调试 Error: 系统错误,错误码:80082,get plugin(id: wx2ea687f4258401a9, version: 0.3.8) failed, permission deny [20250405 09:17:50][wx6fd40ae87f9feb27] appid: wx6fd40ae87f9feb27 openid: o6zAJs6M3jiiOdpYooY9PgbsLGx0 ideVersion: 1.06.2503281 osType: darwin-x64 time: 2025-04-05 09:18:21
开发者工具版本号:1.06.2409140;操作系统:Windows11。 一开始使用新版的开发者工具,出现问题;回退版本后问题没有解决。即使多次清除编译缓存,甚至关闭开发者工具进程后重新打开,也不起作用。但是真机调试和真机预览没有这样的错误。就是白屏然后页面是空白的,在控制台的调试器的wxml里也没有任何东西。[图片]
这是什么问题,这两天突然提示未接入,顾客不敢继续下单了,现在严重影响了公司营收[图片]
小程序助手
帮助小程序相关成员在手机端更方便、及时地管理小程序
小程序助手
扫码体验
split 的问题可以先使用 stable 版本工具,下一版 nightly 会修复这个问题