运行安装element ui后,执行npm run serve竟然报错了,报错信息如下:
ERROR Failed to compile with 1 errors 19:54:55
This dependency was not found:
* core-js/modules/es.object.to-string in ./src/router/index.js
To install it, you can run: npm install --save core-js/modules/es.object.to-string
解决办法
按照提示:npm install --save core-js 安装
或者 npm install core-js@3 -save-dev
执行结束后再运行就可以了~