-
文档中umi3升级到umi4中并没有提到history方法做了修改,导致以下行为完全不一致了。这应该是升级bug?为什么要修改呢?
// umi3 base 配置 /template
history.createHref({ pathname: '/test' }); // 打印为 /template/test
// 当前路径为/template/test时
history.locat…
-
## 问题
在umi中开启styled-component插件, 编写一个scyled-componet组件,在react组件中运行就会报错;
## 复现步骤
在.umirc.ts增加下面配置
``` styledComponents: {} ```
然后再代码中使用使用
```
import styled from 'styled-components…
-
项目重新安装依赖后,报错
```
in ./src/pages/.umi/DvaContainer.js
Module build failed (from ./node_modules/_babel-loader@8.0.5@babel-loader/lib/index.js):
TypeError: Cannot read property 'file' of undefined…
-
为啥我项目里没用到antd menu的菜单也出现下面链接里的这错误,说有些属性已经被代替了要用新的,用的antd desgin pro v6建的项目,antd版本和umi版本也是最新的,是因为哪里内置了antd meun菜单导致出现不兼容问题吗
https://github.com/ant-design/ant-design-pro/assets/103546780/3d60d663-2f8…
-
## 请问 `history.location.pathname` 和 `useLocation` 不一样 有办法全局处理掉吗?
`history.location.pathname` 和 `useLocation` 不一样是一些历史问题,目前可以自己把 base 的部分定义成环境变量再自己拼一下或者 trim 下:
```ts
// .umirc.ts
export def…
-
请问下大佬这个项目支持pyinstaller 封装吗
如果可以的话 大概需要什么步骤呢
我按照常规流程打包进程序 识别图片报错
Exception in thread Thread-4 (on_paste):
Traceback (most recent call last):
File "threading.py", line 1016, in _bootstrap_inner
…
-
hi,
i saw this repository in my perusal of sources that support the GRX350/550 processors.
does this kernel work for the dual core intel interaptiv mips devices?
if so, i'm very intrigued and…
-
nodejs 版本v16.20.0, 18.0也试过了,也不行
node:internal/crypto/hash:71
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
…
-
umi4,老项目升级如何在src/layout/index.tsx文件中获取到路由配置数据
以前umi3会有props的,里面包含路由数据,如今所有组件都没有了props数据,请问,layout怎么处理,难道只能在app.tsx里用插件配置的形式吗?如果我想关闭这种插件配置的形式,走老的src/layout/index.tsx这种方式是不是只能自己单独import并处理路由数据?
还有目前ap…
-
I am trying to upload image and metadata with bundlr. In node js environment this code is working, but in react vite typescript app I am getting this error:
```
TypeError: this._stream.destroy is n…