umi
umi copied to clipboard
[Bug] umi4 dva插件问题反馈
What happens?
umi 4 model中无法引入Reducer,Effect等类
Mini Showcase Repository(REQUIRED)
https://github.com/dong-516/umi4_test
Please provide a minimal reproduction then upload to your GitHub. 请提供 最小重现,并上传到你的 GitHub 仓库
How To Reproduce
umi 3 .umi/plugin-dva 目录如下图
umi4 .umi/plugin-dva 目录如下图
问题是connect.ts不见了,导致Effect,Reducer等一些列dva的类型申明不见了,想在model中引入,报错,如下图
Steps to reproduce the behavior: 1. 2.
Expected behavior 1. 2.
Context
- Umi Version:4.0.7
- Node Version:16.15.1
- Platform:windows 11
同样遇到了v4.0.8,希望快点解决
同样遇到了 v4.0.8 希望快点解决
同求🥺
同样的问题 4.0.12
改为 import { xxx } from '@umijs/max'
What happens?
umi 4 model中无法引入Reducer,Effect等类
Mini Showcase Repository(REQUIRED)
https://github.com/dong-516/umi4_test
Please provide a minimal reproduction then upload to your GitHub. 请提供 最小重现,并上传到你的 GitHub 仓库
How To Reproduce
umi 3 .umi/plugin-dva 目录如下图
umi4 .umi/plugin-dva 目录如下图
问题是connect.ts不见了,导致Effect,Reducer等一些列dva的类型申明不见了,想在model中引入,报错,如下图
Steps to reproduce the behavior: 1. 2.
Expected behavior 1. 2.
Context
- Umi Version:4.0.7
- Node Version:16.15.1
- Platform:windows 11
改为 import { xxx } from '@umijs/max'
一样的报错
即使升级到4.0.13
@HaiBoWon
+1
import { useDispatch, useSelector } from 'umi'; 这两个类型也没用TS类型
3.5.30同
同求,最终如何解决啊大神们?
升级卡在这里了,关注中,
@sorrycc 您好,确实是没有Effect和Reducer这些类型了,在@umijs/max中也没有,这个是个bug呢还是我们用的方式不对啊?用ts定义dva的model,不能引入类型好多红线啊。求个解决方法。
各位大神有解决了的吗~头发掉的只剩一半了还没解决~
我是从原始包中引用的,程序能正常工作,但是就没有 all from umi的既视感了
有解决办法了么?import { useDispatch, useSelector } from '@umijs/max'; 也同样Module '"@umijs/max"' has no exported member 'useSelector'.
这么久才加上这个类型输出,是原打算抛弃dva的吗?
@.***
发件人: chencheng (云谦) 发送时间: 2022-09-28 12:00 收件人: umijs/umi 抄送: wangwufan; Comment 主题: Re: [umijs/umi] [Bug] umi4 dva插件问题反馈 (Issue #8638) Closed #8638 as completed via #9444. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>