umi icon indicating copy to clipboard operation
umi copied to clipboard

A framework in react community ✨

Results 377 umi issues
Sort by recently updated
recently updated
newest added

![image](https://user-images.githubusercontent.com/23540471/176076655-fce24fd5-5294-4d1a-8c2f-b497796005d0.png) 这里ws先使用再实例了 https://github.com/umijs/umi/pull/8271 修改代码顺序后就可以了

## 问题 现在是 JIT 的形式,这种方式不支持 esm。 ## 解法 1、增加一个 configBuilder,通过 esbuild 把用户配置打包临时目录,临时目录为 %%cacheDirectory%%/.umi-config 2、可能需要打包多份,比如用户有 .local 和配置了 UMI_ENV 的场景 3、build 时注意忽略依赖 4、需要收集项目文件的依赖链,提供给 watch 使用 5、读取 build 后的产物,遇到 2 的场景需要做合并

type(enhancement)

## What happens? 开启mfsu后报错export 'default' (imported as '_') was not found in 'react-dnd' ![image](https://user-images.githubusercontent.com/39976617/176419050-6b0d8d22-fb65-4af0-a834-07ff6e8744b6.png) ## Mini Showcase Repository(REQUIRED) > Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) then upload to your GitHub. [最小重现](https://github.com/PineSongCN/demo)...

修改前,联想能找到对象,但是看不到类型提示。 ![image](https://user-images.githubusercontent.com/11746742/176342420-e7461924-2fd0-4f40-8a8f-c89d61195cc6.png) 修改后 ![image](https://user-images.githubusercontent.com/11746742/176342347-5d1447eb-6547-48f7-9d5c-1c52a01d8bb4.png)

##### Checklist - [x] `npm test` passes - [x] commit message follows commit guidelines ##### Description of change - close https://github.com/umijs/umi/issues/8084 When project cwd path contains escaped characters, `umi dev...

## What happens? 我计划在app.tsx中 export function render 并在该函数中获取服务器的路由列表,获取到路由列表后执行 patchRoutes 进行动态路由配置。 经过实践,patchRoutes 函数中得到的由 render 函数赋值的 路由列表 始终为 null / undefined。 经过测试发现 patchRoutes 的执行 早于 render,导致无法在 render 获取路由数据后在 patchRoutes 中进行 merge ![图片](https://user-images.githubusercontent.com/46066977/193623803-c04436c6-d00b-4890-9890-b60cb7c20312.png)...

## What happens? In "@umijs/max": "^4.0.24", use `exportStatic` in config. ``` > max build fatal - AssertionError [ERR_ASSERTION]: Invalid config keys: exportStatic ``` ## Mini Showcase Repository(REQUIRED) https://github.com/umijs/umi/ ## How...

## What happens? 在 umijs v4 设置路由 base后,再通过 **history.push** 或 **history.replace** 方法进行路由跳转时,总会在路由下增加 base 目录。 例如 base 设置为 `app` ,默认页面 会正确进入 `http://localhost:8000/app/` ,但是通过 `history.push('/docs')` 时路由会变成 `http://localhost:8000/app/app/docs` 这个问题好像在前几个版本上 Link 上也存在,升级最新版本后 Link 的路由跳转没有问题,但是...

## 问题描述 在二级路由中配置上wrappers属性后,菜单无法渲染该路由 ![image](https://user-images.githubusercontent.com/29473553/193230083-428bedd3-41e0-4d0c-9978-59198b3f41d2.png) ![image](https://user-images.githubusercontent.com/29473553/193230150-b3dca577-c32d-4560-8943-4085a4c7058b.png) ![image](https://user-images.githubusercontent.com/29473553/193230310-962eec4a-cc3f-4aa9-ae5d-00c38affef70.png) ## 复现代码 https://github.com/qq79952008/umi-wrapper-test

## What happens? 在 mpa 模式下下开启 runtimePublicPath, 访问页面404 ![image](https://user-images.githubusercontent.com/69964024/193190605-97e502fe-eae1-4bdd-81fa-e4b567146bcb.png) ## Mini Showcase Repository(REQUIRED) https://github.com/dingff/umi4-demo ## How To Reproduce **Steps to reproduce the behavior:** 1. pnpm start **Expected behavior** 1. 期望...