最新提问
  • 全部
  • 文章
  • 问答

  • 为什么左边模拟器无法显示右边代码内容?

    [图片]

  • 基础库版本2.20.0 + less + lazyCodeLoading导致编译出错

    工具版本:1.06.2201240 macOS(ARM64) 基础库版本:2.20.0或更高 project.config.json关键配置 { "setting": { "useCompilerPlugins": ["less"], }, "libVersion": "2.22.0", } app.json关键配置 { "lazyCodeLoading": "requiredComponents", } 代码片段:https://developers.weixin.qq.com/s/cMmA0emd7Zxd 报错内容: [] {active: "", tabBar: Array(2)} VM5872 index.js:635 TypeError: Cannot read property 'push' of undefined at m0 (<anonymous>:41:4) at VM5872 index.js:631 at Vr (WASubContext.js?t=wechat&s=1645350791277&v=2.22.0:2) at r.pn.create (WASubContext.js?t=wechat&s=1645350791277&v=2.22.0:2) at Function.b.prepare (WASubContext.js?t=wechat&s=1645350791277&v=2.22.0:2) at b._advancedCreate (WASubContext.js?t=wechat&s=1645350791277&v=2.22.0:2) at Function.b.createWithGenerics (WASubContext.js?t=wechat&s=1645350791277&v=2.22.0:2) at Object.b.create [as createElement] (WASubContext.js?t=wechat&s=1645350791277&v=2.22.0:2) at WASubContext.js?t=wechat&s=1645350791277&v=2.22.0:2 at ca (WASubContext.js?t=wechat&s=1645350791277&v=2.22.0:2) index.js:9 代码片段是一种迷你、可分享的小程序或小游戏项目,可用于分享小程序和小游戏的开发经验、展示组件和 API 的使用、复现开发问题和 Bug 等。可点击以下链接查看代码片段的详细文档: index.js:3 https://mp.weixin.qq.com/debug/wxadoc/dev/devtools/devtools.html --------------------------------------------自己找到的解决方案-------------------------------------------- useCompilerPlugins设置为false,其它不动:页面正常编译,但less文件无法加载,页面样式丢失(❌该方案不可行)libVersion设置为2.19.6或更低,其它不动:页面正常编译及运行(✅方案可行,但无法使用高版本基础库的新特性)移除lazyCodeLoading配置,其它不动:页面正常编译及运行(✅方案可行,但不知对小程序启动性能是否有影响)

  • 打不开小程序项目,显示已经打开5个项目了问题是一个也没打开?

    https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html 微信开发者工具真心垃圾,重启重装都打不开项目,历史版本也打不开项目!

  • 更新开发者工具后,部分页面文件无法上传,显示无依赖关系。什么原因?

    [图片][图片]

  • mac版微信开发者工具安装后一直不能正确推出,每次打开电脑都提示安装!怎么破?

    [图片]

  • 为什么只要使用了自定义组件,在开发工具上就不显示整个页面,但是在手机上就显示正常?

    [图片]开发工具只要引用了自定义组件,就不显示内容。手机上倒是显示正常。重启也不管用

  • 微信开发者工具添加项目使用了3个版本都打不开?

    [图片][图片] 明明一个项目也没打开,选择了一个项目要打开,就弹出这个了,导致现在任何项目都打不开了,重装重启都不行,换了版本也不行!这开发者工具质量真低啊,现在都想投诉了

  • 21 listeners of event AppRoute have been aadded?

    [图片]新建项目还没开始写一个代码就报这个错误,不知该如何解决?

  • 小程序开发工具升级到1.05.2202162后无法正常编译?

    昨晚将小程序开发工具升级到1.05.2202162之后,原本已经正常的代码(都已经发布上线的)无法正常编译了。直接体现为:代码中使用了vant-weapp的组件,编译报错,具体错误如下图所示: [图片] 可以确定的是:上面的代码在开发工具之前的版本都是正常被编译的。

  • 启动项目时报错

    https://developers.weixin.qq.com/miniprogram/dev/devtools/stable.html 在代码没有问题的前提下(与生产代码一致),小程序项目启动时报错,求大佬指点该如何解决: 公司前端说是少下了依赖文件,但是来来回回删除新下好多次了都不行 [图片] react-reconciler.production.min.js:111 Error: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings. at S (react.production.min.js:18) at define.push../node_modules/react/cjs/react.production.min.js.exports.useMemo (react.production.min.js:23) at Provider (Provider.js:11) at rd (react-reconciler.production.min.js:60) at fg (react-reconciler.production.min.js:159) at eg (react-reconciler.production.min.js:147) at Uf (react-reconciler.production.min.js:147) at If (react-reconciler.production.min.js:140) at react-reconciler.production.min.js:29 at define.push../node_modules/@tarojs/react/node_modules/react-reconciler/node_modules/scheduler/cjs/scheduler.production.min.js.exports.unstable_runWithPriority (scheduler.production.min.js:19)(env: Windows,mp,1.05.2201240; lib: 2.22.0) Ie @ react-reconciler.production.min.js:111 c.callback @ react-reconciler.production.min.js:127 Hc @ react-reconciler.production.min.js:37 Pe @ react-reconciler.production.min.js:114 gg @ react-reconciler.production.min.js:153 define.push../node_modules/@tarojs/react/node_modules/react-reconciler/node_modules/scheduler/cjs/scheduler.production.min.js.exports.unstable_runWithPriority @ scheduler.production.min.js:19 dc @ react-reconciler.production.min.js:28 Tf @ react-reconciler.production.min.js:149 If @ react-reconciler.production.min.js:140 (anonymous) @ react-reconciler.production.min.js:29 define.push../node_modules/@tarojs/react/node_modules/react-reconciler/node_modules/scheduler/cjs/scheduler.production.min.js.exports.unstable_runWithPriority @ scheduler.production.min.js:19 dc @ react-reconciler.production.min.js:28 gc @ react-reconciler.production.min.js:29 H @ react-reconciler.production.min.js:28 Nc @ react-reconciler.production.min.js:131 updateContainer @ react-reconciler.production.min.js:181 render @ render.ts:22 render @ render.ts:40 value @ react.ts:246 (anonymous) @ WASubContext.js?t=wechat&s=1645280471426&v=2.22.0:2 we @ WASubContext.js?t=wechat&s=1645280471426&v=2.22.0:2 (anonymous) @ WASubContext.js?t=wechat&s=1645280471426&v=2.22.0:2 (anonymous) @ WASubContext.js?t=wechat&s=1645280471426&v=2.22.0:2 App @ sensorsdata.min.js:1 ./src/app.tsx @ app.tsx?574c:12 __webpack_require__ @ bootstrap:79 checkDeferredModules @ bootstrap:45 webpackJsonpCallback @ bootstrap:32 (anonymous) @ app.js:7 p @ WASubContext.js?t=wechat&s=1645280471426&v=2.22.0:2 (anonymous) @ VM312:7 doWhenAllScriptLoaded @ VM303:8492 scriptLoaded @ VM303:8520 (anonymous) @ VM303:8545 load (async) (anonymous) @ assubloader.js:1 U @ WAServiceMainContext.js:2 loadScripts @ assubloader.js:1 async function (async) loadScripts @ assubloader.js:1 loadAppResourceScripts @ assubloader.js:1 (anonymous) @ VM303:8564 (anonymous) @ VM303:8570 loadScripts @ assubloader.js:1 async function (async) loadScripts @ assubloader.js:1 loadAppResourceScripts @ assubloader.js:1 (anonymous) @ app-service.js:1 Show 4 more frames WAServiceMainContext.js:2 Error: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings. at S (react.production.min.js:18) at define.push../node_modules/react/cjs/react.production.min.js.exports.useMemo (react.production.min.js:23) at Provider (Provider.js:11) at rd (react-reconciler.production.min.js:60) at fg (react-reconciler.production.min.js:159) at eg (react-reconciler.production.min.js:147) at Uf (react-reconciler.production.min.js:147) at If (react-reconciler.production.min.js:140) at react-reconciler.production.min.js:29 at define.push../node_modules/@tarojs/react/node_modules/react-reconciler/node_modules/scheduler/cjs/scheduler.production.min.js.exports.unstable_runWithPriority (scheduler.production.min.js:19)(env: Windows,mp,1.05.2201240; lib: 2.22.0)

  • 在云函数中使用got为什么总是提示 Error: Cannot find module 'got'?

    在某个云函数目录下用npm安装了got,然后分别使用 “上传并部署:云端安装依赖” 和 “上传并部署:所有文件” 试过,都提示Error: Cannot find module 'got',然而在package.json的依赖项中有got,删除云函数后再次新建和部署也没用,到底是哪里出了问题呢? 下面是控制台的提示信息: VM1480 WAService.js:2 Unhandled promise rejection Error: cloud.callFunction:fail Error: errCode: -504002 functions execute fail | errMsg: Runtime.ImportModuleError: Error: Cannot find module 'got' at Object.module.exports.load (:21403/var/runtime/node10/UserFunction.js:35) at Runtime.handleOnce (:21403/var/runtime/node10/Runtime.engine.js:98) at Timeout.setTimeout [as _onTimeout] (:21403/var/runtime/node10/Runtime.engine.js:55) at ontimeout (:21403/appservice/timers.js:436) at tryOnTimeout (:21403/appservice/timers.js:300) at listOnTimeout (:21403/appservice/timers.js:263) at Timer.processTimers (:21403/appservice/timers.js:223) (callId: 1645266750652-0.5721262603740986) (trace: 18:32:30 start->18:32:37 system error (Error: errCode: -504002 functions execute fail | errMsg: Runtime.ImportModuleError: Error: Cannot find module 'got' at Object.module.exports.load (:21403/var/runtime/node10/UserFunction.js:35) at Runtime.handleOnce (:21403/var/runtime/node10/Runtime.engine.js:98) at Timeout.setTimeout [as _onTimeout] (:21403/var/runtime/node10/Runtime.engine.js:55) at ontimeout (:21403/appservice/timers.js:436) at tryOnTimeout (:21403/appservice/timers.js:300) at listOnTimeout (:21403/appservice/timers.js:263) at Timer.processTimers (:21403/appservice/timers.js:223)), abort) at I (VM1480 WAService.js:2) at VM1480 WAService.js:2 at VM1480 WAService.js:2 at n (VM1480 WAService.js:2)(env: Windows,mp,1.05.2107221; lib: 2.21.2)

  • 更新开发工具为最新版本,require报错?

    [图片] [图片] 上图为app.js文件,A行:调用封装的require方法,B行:不用封装,直接调用,A行报错路径找不到,B行正常 更新开发工具之前是正常的 [图片]

  • HBuilder当中使用微信开发者工具运行项目,开了模拟器,但是不显示,怎么解决?

    1.HBuilder上微信小程序配置了小程序appID [图片][图片] 2.HBuilder上配置了微信开发者工具相对路径 [图片] 3.在HBuilder上使用微信开发者工具运行项目,模拟器开了,但是不显示 [图片] 怎么解决???

  • wx.chooseLicensePlate开发工具使用不了?

    wx.chooseLicensePlate开发工具使用不了?

  • Error: module 'xxx' is not defined 怎么办?

    [图片] 我在question.js中引用了 [图片] 显示如下报错 [图片] 之前还能运行的,现在不行了,很奇怪啊? 开发者工具版本号:1.05.2201240 环境:Mac

  • 代码怎么写?

    不会写代码,咋开发小程序,咋审核😭?求大神带

  • 微信开发者工具

    [图片] 求大佬,为什么导入或者从hbuliderx运行项目都不能编译,模拟器无反应

  • 解析二维码失败:非小程序码?

    配置了扫普通链接二维码打开小程序 微信开发工具通过二维码解析失败 以前的小程序使用此功能是好使的 以下是错误信息 message:解析二维码失败:非小程序码 appid: wxaa4ab29c08dd2d8f openid: o6zAJs5ov0pdR_cjAi72jHKGCzBg ideVersion: 1.05.2201240 osType: win32-x64 time: 2022-02-18 18:04:51

  • 开发者工具minprogram_npm/psl/index.js一直编译中?,最后崩溃,我也崩溃了

    上传问题: [图片] 预览问题:[图片] 最后电脑嗡嗡响,风扇转起来,努力编译后,芭比Q了 [图片] 系统:[图片] 工具版本:[图片] 开发者工具调试: [图片]

  • 保存,pages下多出来的文件(之前删除的页面)

    [图片]