收藏
回答

今日更新开发者工具后,打开项目报错,启动不起来

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

以下是报错内容,开发者工具版本回退后,正常启动项目。


Error: file: utils/validate/index.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: utils/validate/index.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\yangy\AppData\Local\微信开发者工具\User Data\97c2c3ed9e9b4a343745d4ac3603eef1\WeappCode\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\plugins\enhance.js:1:1579)

    at doTransform (C:\Users\yangy\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\yangy\AppData\Local\微信开发者工具\User Data\97c2c3ed9e9b4a343745d4ac3603eef1\WeappCode\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\worker.js:2:1225)(env: Windows,mp,1.06.2407120; lib: development)

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

3 个回答

  • Demons
    Demons
    08-30

    请问是什么版本工具

    08-30
    有用
    回复 1
    • 过简-陈龙
      过简-陈龙
      08-30
      [] 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.


      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.


          at enhance (C:\Users\Administrator\AppData\Local\微信开发者工具\User Data\97c2c3ed9e9b4a343745d4ac3603eef1\WeappCode\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\plugins\enhance.js:1:1579)
          at doTransform (C:\Users\Administrator\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\Administrator\AppData\Local\微信开发者工具\User Data\97c2c3ed9e9b4a343745d4ac3603eef1\WeappCode\package.nw\js\common\miniprogram-builder\modules\corecompiler\summer\worker.js:2:1225)(env: Windows,mp,1.06.2407120; lib: 3.5.1)
      [] Error: file: app.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: app.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-30
      回复
  • 琅玗
    琅玗
    星期一 14:52

    我的也是这样, 怎么解决,版本: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.


    星期一 14:52
    有用
    回复
  • 过简-陈龙
    过简-陈龙
    08-30

    1.06.2407120版本

    我的也是


    08-30
    有用
    回复
登录 后发表内容