react-jsonschema-form
react-jsonschema-form copied to clipboard
Wrong import in rjsf/antd
Prerequisites
- [X] I have searched the existing issues
- [X] I understand that providing a SSCCE example is tremendously useful to the maintainers.
- [X] I have read the documentation
- [ ] Ideally, I'm providing a sample JSFiddle or a shared playground link demonstrating the issue.
What theme are you using?
antd
Version
5.0.0-beta.8
Current Behavior
Wrong react import in generated file node_modules/@rjsf/antd/dist/index.d.ts:35
export const Form: import("@rjsf/core/node_modules/@types/react").ForwardRefExoticComponent<import("@rjsf/core").FormProps<any, {}> & import("@rjsf/core/node_modules/@types/react").RefAttributes<import("@rjsf/core").default<any, {}>>>;
Expected Behavior
Must be import("@types/react")
Steps To Reproduce
No response
Environment
- OS: macOS 12.5
- Node: v18.7.0
- npm: 8.15.0
Anything else?
No response
Since antd
isn't written in typescript the compiler is automatically generating things like this. What kind of problems is it causing?
This import can't be found, so unable to compile typescript. As a workaround I use direct import from antd.esm