报错信息
--- 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的选项去掉就可以了 但是去掉了这个勾选又无法生成预览
新创建的项目有没有这个报错
[] Error: file: siteinfo.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: siteinfo.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 (D:\Users\CC\AppData\Local\微信开发者工具\User Data\3e5d725bf5abbd2bfd7bc047ee989e46\WeappCode\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\plugins\enhance.js:1:1579)
at doTransform (D:\Users\CC\AppData\Local\微信开发者工具\User Data\3e5d725bf5abbd2bfd7bc047ee989e46\WeappCode\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\plugins\enhance.js:1:1827)
at Object.runSummerPluginHook (D:\Users\CC\AppData\Local\微信开发者工具\User Data\3e5d725bf5abbd2bfd7bc047ee989e46\WeappCode\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\worker.js:2:1239)(env: Windows,mp,1.06.2504010; lib: 3.5.8)
一共报了164个类似的错误,都是插件依赖异常
然后今天上午退回了开发者工具的版本 退到 Stable 1.06.2503300 再次运行 完美解决 一个错误都没有
+1,这工具真是一言难尽...
把微信开发者工具卸载,重现去官网下载最新版本的开发者工具就没事了
上周才正常运行的,没有升级开发工具啊,现在也报这个错误了!!!
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.