-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Bug] 配置webpack5,启动报错 #7087
Comments
还是给个复现仓库吧,试了下不能复现。 |
Hello @Joyeuxman. In order to facilitate location and troubleshooting, we need you to provide a realistic example. Please forking these link codesandbox umi or using 你好 @Joyeuxman, 为了方便定位和排查问题,我们需要你提供一个重现实例,请提供一个尽可能精简的链接 codesandbox umi 或使用 |
今天clone 了ant pro simple JS版本,build时报warn
关闭 webpack5和mfsu才不报 |
我找到原因了,我在 |
我没添加这也出现在这个报错了~ 就是简单的 yarn create umi antd-pro 采用 TS以及simple |
打开 webpack5 也遇到这个 warning,在 chainWebpack 里面看 config.toConfig(),还是 webpack4 的写法。 production mode 有,development mode 没有 |
应该不是umi问题,请问不去 |
What happens?
背景:项目是用umi脚手架进行搭建的,刚开始umi版本号是3.4.25,在此版本上添加
webpack5:{}
,启动报错后来升级umi版本号3.5.14,配置文件中添加
webpack5:{}
,然后启动项目依旧报错报错如下:
期望能够使用webpack5功能
The text was updated successfully, but these errors were encountered: