-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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] umi3升级umi4过程中,遇到的三个问题(msfu、layout、Outlet) #8172
Comments
起不来,@fang/image-upload is not in the npm registry, or you have no permission to fetch it. |
可以通过环境便利浪配置 https://umijs.org/docs/guides/env-variables#port 环境变量,可以在
|
📣📣📣Outlet的问题是我个人的问题,已解决,请忽略; |
发现一个新的问题,在项目中安装了 "@ant-design/pro-layout": "^5.0.12" 也会导致项目错误 ,需要 "@ant-design/pro-layout": "next", |
https://github.com/umijs/umi-next/pull/945 |
src/api 是一个新的约定目录 |
好的,多谢,那我换个别的目录 |
第一个问题应该是 |
可以解决吗?我们这个是一个微前端子应用,必须这样配 |
layout 的已经修了;mfsu 的 esbuild 模式在一些场景下还不够完善,遇到了先不开吧,或者提供最简复现。 还有其他问题请单独提 issue。 |
如题,在存量umi3项目升级umi4的过程中,遇到的三个阻塞性问题
🤔🤔 显式配置mfsu为
{esbuild: true}
时,控制台报如下错:🤔🤔 开启layout后,报错”React is not defined“
通过注释,然后上面的问题后,因为开启了layout配置如下:
页面报错” React is not defined“排查到问题来源于”proLayout“
### 🤔🤔
Outlet
会导致页面报错,并不能渲染通过注释的方式,绕过了上面两个问题后,发现页面还是不能渲染,排查到,是对Outlet不支持,控制台报错如下
![image](https://user-images.githubusercontent.com/56460015/174776354-36fd0398-1e55-498e-b7c1-0435be7412f0.png
🤔🤔 其他问题
deServer
的配置,那么有相关需求,如配置port,只能去命令行中设置,有没有通过构建时配置的方式了?复现步骤
见:https://github.com/sorryljt/umi4issue
ps:为保持环境一致,这里直接用的实际项目环境,删掉业务代码后,可保证上述问题必现
The text was updated successfully, but these errors were encountered: