- 开发者工具报错,项目无法运行,回退版本也报错;怎么处理?
开发者工具版本号:1.06.2504010 项目:uniapp cli + vue3 + vite5 问题介绍: 编译到小程序运行就会报错;取消勾选"将JS编译成ES5"选项就能正常运行 报错信息截图(后面都是一样的错误 文件名不同): [] Error: file: mixins/theme.js --- PLACEHOLDER PACKAGE --- This @babel/plugin-proposal-private-property-in-object version is not meant to be imported. Something is importing @babel/plugin-proposal-private-property-in-object without declaring it in its dependencies (or devDependencies) in the package.json file. Add "@babel/plugin-proposal-private-property-in-object" to your devDependencies to work around this error. This will make this message go away. Error: file: mixins/theme.js --- PLACEHOLDER PACKAGE --- This @babel/plugin-proposal-private-property-in-object version is not meant to be imported. Something is importing @babel/plugin-proposal-private-property-in-object without declaring it in its dependencies (or devDependencies) in the package.json file. Add "@babel/plugin-proposal-private-property-in-object" to your devDependencies to work around this error. This will make this message go away. at enhance (C:\Users\xxx\AppData\Local\微信开发者工具\User Data\97c2c3ed9e9b4a343745d4ac3603eef1\WeappCode\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\plugins\enhance.js:1:1579) at doTransform (C:\Users\xxx\AppData\Local\微信开发者工具\User Data\97c2c3ed9e9b4a343745d4ac3603eef1\WeappCode\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\plugins\enhance.js:1:1827) at Object.runSummerPluginHook (C:\Users\xxx\AppData\Local\微信开发者工具\User Data\97c2c3ed9e9b4a343745d4ac3603eef1\WeappCode\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\worker.js:2:1239)(env: Windows,mp,1.06.2504010; lib: 3.8.9)
07-06 - 开发者工具报错,项目无法运行,回退版本也报错;怎么处理?
报错信息 --- PLACEHOLDER PACKAGE --- This @babel/plugin-proposal-private-property-in-object version is not meant to be imported. Something is importing @babel/plugin-proposal-private-property-in-object without declaring it in its dependencies (or devDependencies) in the package.json file. Add "@babel/plugin-proposal-private-property-in-object" to your devDependencies to work around this error. This will make this message go away. 2025-7-6 21:37:47更新: 把JS编译成ES5的选项去掉就可以了 但是去掉了这个勾选又无法生成预览
06-25 - uniapp如何使用小程序评价?
manifest.json [图片] 评价页面 [图片] 插件已申请 [图片]
2023-10-30 - 线上保存图片到相册API无效?
开发者工具、预览、真机调试都没问题,上线后无效 主要代码片段 [图片]
2022-11-10 - 如何获取广告的主要信息?
例如需获取 : 广告文字标题 广告内容(视频或图片地址) 广告主名称 广告主logo 时长等字段用于自定义广告样式
2022-11-03 - 微信退款data.setvalue时报错
按照官方给的退款文档写的,参数也没有问题 但是一运行到setvalue时就报输入字符串的格式错误 [图片]
2019-12-04 - 小程序的首页为什么不能分享?
想分享首页却提示首页不能分享
2019-11-07 - 如何动态的设置转发的标题与图片?
点击右上角的转发内容都是要提前写好的,有没有什么方法可以使转发的内容动态变化呢
2019-10-18 - setdata绑定的数据不是完整的原数据?
[图片] 这是数据绑定的代码 [图片] 这是打印的data.data的原始数据 [图片] [图片] 这是获取绑定之后的数据(主要是没有了.jpg的后缀,不知道是因为什么)
2019-10-14