收藏
回答

@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.

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

3 个回答

  • Demons
    Demons
    2024-06-24

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

    2024-06-24
    有用
    回复
  • 琅玗
    琅玗
    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
    有用
    回复
登录 后发表内容