Modal not found: Can't resolve '@babel/runtime/helpers/esm/extends'

项目用的dva
最近从gitlab上down下来npm install之后总报如下错误:
./node_modules/history/esm/history.js
Module not found: Can't resolve '@babel/runtime/helpers/esm/extends' in 'D:\gitlab\uam_web\node_modules\history\esm'
用yarn也不行,
删了node_modules重装也不行
重装babel-runtime也不行
最后!

解决方法:
package.json中的roadhog换为:’^2.5.0-beta.4’,即:
"roadhog": "^2.5.0-beta.4",

你可能感兴趣的:(小bug,runtime,history,Can't,resolve,'@ba,Module,not,found)