-
## 相关环境信息
- **Umi 版本**:2.8.20
- **Node 版本**: v12.9.0
- **操作系统**:mac
----
希望能把 `umi-build-dev ` dependencies 中的 ` react-router`、`eact-router-dom ` 版本给升级一下,以便解决以下警告
```
Warning: componentWill…
atzcl updated
4 years ago
-
![企业微信截图_6562c6e7-9df9-4d28-9a99-9d09b66d729a](https://user-images.githubusercontent.com/6781980/61038314-6354ca80-a3ff-11e9-8019-96d1a65db7bf.png)
-
**问题描述** [问题如题]
**示例代码** [ 前面是warn 后面开始报错
npm ERR! path /Users/apple/Desktop/xishanxu/umiStudy/antd-pro/create/node_modules/umi-build-dev/node_modules/@babel/traverse/node_modules/.bin/parser
np…
-
`Warning: [antd: LocaleProvider] `LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale`
语言选用的是js
搜索了一下,好像用到`LocaleProvider`的地方只有`src/pages…
-
index.js:1 uncaught at _callee3 at _callee3
at _callee6
at takeEvery(login/login, _callee)
at _callee
at _callee
{
"name": "ant-design-pro",
"version": "1.0.0",
"private": true…
-
```js
// package.json
{
"version": "2.1.0",
"devDependencies": {
"umi": "^2.2.4",
}
```
执行 `npm i && npm run start`
```bash
> cross-env APP_TYPE=site umi dev
[umi-plugin-d…
-
## 相关环境信息
- **Umi 版本**:2.8.20
- **Node 版本**: v12.9.0
- **操作系统**:mac
----
希望能把 `umi-build-dev ` dependencies 中的 ` react-router`、`eact-router-dom ` 版本给升级一下,以便解决以下警告
```
Warning: componentWill…
atzcl updated
5 years ago
-
在添加stylus-loader的情况下,不支持自动导入 global.styl
查看源码发现 `umi-build-dev/src/plugins/global-css.js`
```
const cssFiles = [
join(paths.absSrcPath, 'global.sass'),
join(paths.absSrcPath, 'global.sc…
-
首先,我按照React官方文档引入了React hooks 插件,代码如下:
![image](https://user-images.githubusercontent.com/33993132/49559392-a4f13480-f949-11e8-9744-a4f5ab65e724.png)
第二步:按照官方文档引用 import { useState } from 'react';,具…
-
$ umi block add ant-design-pro/analysis
✔ Parse url and args
✔ Git fetch
✔ Git checkout master
✔ Git pull
✖ error AssertionError [ERR_ASSERTION]: /home/anthony/.umi/blocks/github.com/umijs/u…