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

FilePicker JSX element class does not support attributes because it does not have a 'props' property #1855

Open
andreasbalzer opened this issue Jul 27, 2024 · 1 comment

Comments

@andreasbalzer
Copy link

Category

[ ] Enhancement

[x] Bug

[ ] Question

Version

Please specify what version of the library you are using: [3.18.1]

Expected / Desired Behavior / Question

It should be possible to use FilePicker in a React app via <FilePicker .... />.

Observed Behavior

JSX element class does not support attributes because it does not have a 'props' property.ts(2607)
'FilePicker' cannot be used as a JSX component.
Its type 'typeof FilePicker' is not a valid JSX element type.
Types of construct signatures are incompatible.
Type 'new (props: IFilePickerProps) => FilePicker' is not assignable to type 'new (props: any, deprecatedLegacyContext?: any) => Component<any, any, any>'.
Type 'FilePicker' is missing the following properties from type 'Component<any, any, any>': context, setState, forceUpdate, props, and 2 more.ts(2786)

Copy link

Thank you for submitting your first issue to this project.

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

1 participant