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

type error #3064

Open
crazyair opened this issue Jun 5, 2024 · 2 comments
Open

type error #3064

crazyair opened this issue Jun 5, 2024 · 2 comments

Comments

@crazyair
Copy link

crazyair commented Jun 5, 2024

Description of Bug

Provide a concise description of your bug and your project link (if applicable).

https://stackblitz.com/edit/react-1tbkak?file=demo.tsx%3AL11

Steps to Reproduce

see demo

Expected Behavior

A clear and concise description of what you expected to happen.

Screenshots/Screencast

If applicable, add screenshots to help explain your problem.

Property 'getFieldsValue' does not exist on type 'FormInstance<any>'.(2339)

Additional Context/Questions
Add any other context or questions regarding this bug.

@fvsch
Copy link
Contributor

fvsch commented Jun 5, 2024

Looks like the types in antd depend on a type from rc-field-form (which is a dependency of antd), and our type loading doesn't manage to follow that import.

@crazyair
Copy link
Author

crazyair commented Jun 5, 2024

Looks like the types in antd depend on a type from rc-field-form (which is a dependency of antd), and our type loading doesn't manage to follow that import.

Can it be optimized? Because this is normal code, there is no problem in the codesandbox. And I remember this was not wrong before?

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

No branches or pull requests

2 participants