umi
umi copied to clipboard
A framework in react community ✨
umi3升级到umi4,项目正常启动,dva正常使用, 但是开启vite,运行项目就会报错,运行不起来  
## What happens? 如图所示,由于 tsconfig.json 中缺少与 .umirc.ts 中的 alias 对应的 paths 定义,导致 ide 报错,代码本身能正常运行。 ## Mini Showcase Repository(REQUIRED) 应该不需要... > Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) then upload to your GitHub....
## What happens?  ## Context - **Umi Version**: v4.0.7 - **Node Version**: v16.0.0 - **Platform**: mac
"@ant-design/pro-layout": "^7.0.1-beta.28", "@umijs/max": "^4.0.7", 如题,在路由中配置一级栏目只有特定权限才展示,有若干子路由,在本地开发环境一切正常,打包部署后,没有权限的情况下。一级栏目还是会出现在栏目列表。但是点击后提示403没权限,但是该栏目的二级栏目以及其他栏目需要权限的二级栏目均不展示。想问下,这是我配错了 ,或是设计如此,只能控制二级栏目
Hi, Couldn't make SSR working while migrating from Umi3 to Umi4 (`4.0.8`), if I added the `ssr` key into config (`.umirc.js`) this way: ```js export default { svgr: {}, ssr:...
## What happens? Umi4 layout运行时配置中 , 配置面包屑的itemRender属性 , 当前route中component属性值都是undefined , Umi3获取的值正常 , 需要根据component是否有值来判断当前面包屑是否可点击 ## Mini Showcase Repository(REQUIRED) > Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) then upload to your GitHub. 请提供 [最小重现](https://stackoverflow.com/help/minimal-reproducible-example),并上传到你的...
Close #8545 由于 BrowserRoutes 作为 children 传给 dataflow plugin,在 useModel 使用 useSearchParams,会导致无法获取 router context。修复方式为,将 BrowserRoutes 放置在外层,使 dataflow 相关 plugin 中都能够获取到 router context,从而顺利使用 router 相关 hooks
我的目标 相关讨论 https://github.com/umijs/umi/issues/8530 ```tsx import { act, render } from '@testing-library/react'; import React from 'react'; import { TestBrowser } from '@umijs/max'; const waitTime = (time: number = 100) => {...
自定义 plugin 的文件允许扩展名为 .js