npm在打包老项目时会有如下报错:
npm
Uncaught Error: Cannot find module 'babel-runtime/regenerator' ...
解决方法:
npm i babel-runtime --save
或者修改package.json文件添加如下代码:
package.json
"dependencies": { ... "babel-runtime": "^6.26.0", ... }
问题解决。