收藏
回答

@babel/plugin-proposal-private-property-in-object

框架类型 问题类型 操作系统 工具版本
小程序 Bug Windows Stable 1.06.2405020

https://developers.weixin.qq.com/miniprogram/dev/devtools/stable.html

在5010正常运行的代码,到5020的工具上不行了

报了一堆这样的错

[] Error: file: common/vendor.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.

回答关注问题邀请回答
收藏

7 个回答

  • 社区技术运营专员--Asher
    社区技术运营专员--Asher
    2024-06-24

    你试一下装https://developers.weixin.qq.com/miniprogram/dev/devtools/nightly.html

    2024-06-24
    有用
    回复 1
    • 小方
      小方
      06-20
      天塌了,又出现了,刚升级最新版本,但是上一个版本没有任何问题。
      06-20
      1
      回复
  • 东
    07-09

    2025年了,这问题又出现了,真抽象

    07-09
    有用 3
    回复
  • 豪杰
    豪杰
    07-07

    现在的1.06.2504010又出现这个问题了

    07-07
    有用 2
    回复 2
  • 💻 {ραℜǒし}
    💻 {ραℜǒし}
    星期二 13:55

    现在的1.06.2504030又出现这个问题了, 怎么解决

    星期二 13:55
    有用 1
    回复
  • 无名之辈
    无名之辈
    08-14

    开发者工具真的是太好用辣!

    我下辈子一定不用它

    [] Error: file: router/interceptor.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.

    08-14
    有用
    回复
  • 琅玗
    琅玗
    2024-11-18

    我的也是这样, 怎么解决,版本:1.06.2409140

    d".(env: Windows,mp,1.06.2409140; lib: 3.5.8)

    [] Error: file: common/main.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.



    2024-11-18
    有用
    回复
  • 胖虎
    胖虎
    2024-07-24

    升级到最新就好使了,刚成功

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