-
使用yarn安装,在项目里安装eslint后,执行eslint,提示ESLint couldn't find the plugin "eslint-plugin-react".
此时node_modules内结构为:
```
/node_modules
@umijs/fabric
node_modules
eslint-plugin-…
-
```javascript
import { Container as ElContainer } from 'element-ui'
```
这样会报错,这样对于JSX单文件组件或者class-component 很不方便。
需要多写Vue的组件注册(其实完全可以省掉)
```javascript
Vue.component(Container.name, Container);…
-
通过npm create umi
选择语言Javascript 构建以后,通过yarn 安装
在执行build命令时报错,在后续npm run start 时运行项目也会有问题,把index.js中的UIplguin,注解以后,右下角的Umi plugins才能正常运行,但无法显示多的一个侧边栏demo
```
api.addUIPlugin(() => join(__dirname…
-
umi 4 支持使用 using 的前置条件,因为 prepare 阶段需要这个包扫描。
故需要升级所有 rust 依赖重新发版。
cc @stormslowly
fz6m updated
10 months ago
-
**Describe the bug**
```shell
AssertionError [ERR_ASSERTION]: [MFSU] package.json not found for dep windi.css which is imported from @/app.js
```
umi3 项目配置开启 msfu 时,会报找不到 `windi.css` 的错误。
-
## Overview
When using the umi framework and using lottie react in setting the global loading page loading.tsx, with loop=true, it will get stuck in the loading page for a long, long time
...
![ima…
-
当和umi的useRequest一起使用时,我在组件最外层配置了UseAPIProvider的onError属性,当接口500时,不执行onError的回调函数
``` javascript
// useUser.js
const useUser = () => {
const [userInfo, setUser] = useState();
const { run, load…
-
目前 `@umijs/plugins` [使用 `ahooksjs/use-request`](https://github.com/umijs/umi/blob/master/packages/plugins/package.json#L26),如果我没有理解错的话,`ahooksjs/use-request` 是一个早期的包,后续 `useRequest` 的代码已合并进入 `ahooks…
-
主应用是react16.8.x + webpack, 子应用是umi3.5.x+@umijs/plugin-qiankun
在苹果手机的微信内能访问子应用的路由, 安卓手机的微信上访问会报错
访问地址:https://erp.mengniuerp.com/#/amazon/AmazonIntroduce
Uncaught TypeError: application 'amazon' d…
-
**umi** (https://umijs.org/)
```
mkdir umi-demo
cd mkdir umi-demo
pnpm dlx create-umi@latest
```