Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@types/react 18.2.66版本删除了onPointerEnterCapture、onPointerLeaveCapture事件 #628

Closed
caocong1 opened this issue Mar 15, 2024 · 6 comments
Assignees

Comments

@caocong1
Copy link

这是@types/react的pull链接DefinitelyTyped/DefinitelyTyped#68984

会导致报ts错误:
error TS2739: Type '{}' is missing the following properties from type 'Pick<AntdIconProps, "title" | "name" | "color" | "size" | "start" | "children" | "style" | "type" | "rowSpan" | "cite" | "data" | "form" | "label" | "slot" | "span" | ... 348 more ... | "twoToneColor">': onPointerEnterCapture, onPointerLeaveCapture

@little-time
Copy link

我也出现了,怎么解决的

@coder-zhuzm
Copy link

upup

@sinna94
Copy link

sinna94 commented Mar 15, 2024

I temporarily resolved this by setting @types/react to version 18.2.65 until the issue was resolved.

@vagusX
Copy link
Member

vagusX commented Mar 15, 2024

Fixed in @ant-design/icons@5.3.2

@vagusX vagusX closed this as completed Mar 15, 2024
@qld-cf
Copy link

qld-cf commented Mar 15, 2024

Fixed in @ant-design/icons@5.3.2

@vagusX 4.x版本会有修吗

@zmq3821
Copy link

zmq3821 commented Mar 22, 2024

我升级icon的版本解决了这个问题,"@ant-design/icons": "^5.3.4"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants