-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
启动报错“./node_modules/history/esm/history.js” #2032
Comments
请问这个问题解决了吗?我也碰到这个 |
我是用dva-cli创建的,dva-cli的版本是0.10.0(最新的版本)。我将版本切换成1.0.0-beta.4再创建项目就可以正常启动了,具体什么原因我也没搞明白 |
应该和 remix-run/history@6104a6a 有关。 |
原因history 发布了 4.9,roadhog 之前版本对于 方案试了下,有两个方案供选择,
export default function(webpackConfig) {
delete webpackConfig.resolve.alias['@babel/runtime'];
return webpackConfig;
}
|
试了 无效 最后这样设置的 export default function(webpackConfig) { |
两种方法都试了,都没有解决。 |
按照你说的解决了。 |
Code to reproduce the issue: (请提供可复现的代码或者步骤)
Expected behavior: (预期的正常效果)
正常进入启动页
Actual behavior: (实际效果)
报错:
./node_modules/history/esm/history.js
Module not found: Can't resolve '@babel/runtime/helpers/esm/extends' in
'“项目路径所在绝对路径”\node_modules\history\esm'
Versions of packages used: (哪个库的哪个版本出现的问题)
dva-cli version 0.10.0
将版本回退到1.0.0-beta.4 可以正常启动
The text was updated successfully, but these errors were encountered: