构建离子应用程序时出现编译错误

Compilation error when building ionic app

我使用终端的@ionic/cli 创建了一个离子应用程序,使用电容器实现,但由于在添加平台之前,我必须构建我无法这样做的应用程序。我收到以下错误

An unhandled exception occurred: [BABEL] /Users/flameswitcher/Desktop/Projects/partners/partner-app/www/main-es2015.js: Could not find plugin "proposal-numeric-separator". Ensure there is an entry in ./available-plugins.js for it. (While processing: "/Users/flameswitcher/Desktop/Projects/partners/partner-app/node_modules/@babel/preset-env/lib/index.js")
See "/private/var/folders/c4/sgw5hxrx0mx16j941jv3xz8w0000gn/T/ng-lEsDYH/angular-errors.log" for further details.
[ERROR] An error occurred while running subprocess ng.

ng run app:build exited with exit code 127.

我希望我知道发生了什么,我尝试搜索但找不到任何答案,我也尝试更新 angular、ionic 和 Node.JS 本身但没有解决问题,会吗由于我的项目被搁置,感谢您对此提供的帮助。

运行这个命令就解决了

npm i @babel/compact-data@7.8.0