更新到最新版本(2504030)的开发者工具就报一堆@babel/plugin-proposal-private-property-in-object的错误,本来代码是正常运行的:
[] 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.
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.
我看社区里面出现过这些问题了,除了回退版本没有任何解决方法,而且这个问题不是第一次出现了,上一年都已经有过这个问题了。
(顺便吐槽一下,这就是大厂的出品吗?我觉得我能去大厂上班了)