收藏
回答

开发者工具报错,项目无法运行,回退版本也报错;怎么处理?

报错信息

--- 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的选项去掉就可以了 但是去掉了这个勾选又无法生成预览

最后一次编辑于  07-06
回答关注问题邀请回答
收藏

5 个回答

  • 社区技术运营专员--Demons
    社区技术运营专员--Demons
    06-26

    新创建的项目有没有这个报错

    06-26
    有用
    回复 5
    • Boolean
      Boolean
      06-26
      新项目没有这个报错
      06-26
      回复
    • Boolean
      Boolean
      07-06
      这么久了还是不打算处理一下吗
      07-06
      回复
    • 社区技术运营专员--Demons
      社区技术运营专员--Demons
      07-08回复Boolean
      正在排查
      07-08
      回复
    • CoMeNg
      CoMeNg
      07-09回复社区技术运营专员--Demons
      应该是版本问题,昨天我也是遇到这个问题,检查所有环节,而且很纳闷之前可以运行的一个项目本来想新增点功能的,结果还没开始,一运行就报错
      [] 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 再次运行 完美解决 一个错误都没有
      07-09
      1
      回复
    • 岚枫
      岚枫
      07-11回复社区技术运营专员--Demons
      请问下这个解决了吗?目前只能回退版本才可以,这要是万一回退不了,就坑大了
      07-11
      回复
  • 梦丶
    梦丶
    06-26

    +1,这工具真是一言难尽...

    06-26
    有用 3
    回复
  • 又能怎
    又能怎
    2天前

    把微信开发者工具卸载,重现去官网下载最新版本的开发者工具就没事了

    2天前
    有用 1
    回复 1
    • Jerry
      Jerry
      1天前
      卸载重装可以了
      1天前
      回复
  • Jerry
    Jerry
    1天前

    上周才正常运行的,没有升级开发工具啊,现在也报这个错误了!!!

    1天前
    有用
    回复
  • Pansu
    Pansu
    07-03

    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.


    07-03
    有用
    回复
登录 后发表内容