收藏
回答

开发者工具升级到最新版后,报错,项目启动不起来(去年有出现过这个问题,今年又出现了)?

回退后正常

[] Error: file: common/assets.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/assets.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:1239)(env: Windows,mp,1.06.2504010; lib: 3.8.10)

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

1 个回答

  • Damon
    Damon
    07-13

    同问,怎么搞

    07-13
    有用
    回复 1
    • jonsen
      jonsen
      07-25
      我直接回退开发者工具版本了
      07-25
      回复
登录 后发表内容