To install it, you can run: npm install --save core-js/modules/es.error.cause.js


初始化时出现core-js错误的问题

报错描述

 ERROR  Failed to compile with 7 errors                                                                                                                                                                5:51:36 ├F10: PM┤

This dependency was not found:

- core-js/modules/es.error.cause.js in ./node_modules/_@[email protected]@@babel/runtime/helpers/createForOfIteratorHelper.js, ./src/directive/permission/hasPermi.js and 5 others

To install it, you can run: npm install --save core-js/modules/es.error.cause.js

解决方法

cnpm install core-js@3 --save

猜你喜欢

转载自blog.csdn.net/PineSummer/article/details/140522952