pnp / sp-dev-fx-controls-react

Reusable React controls for SPFx solutions
https://pnp.github.io/sp-dev-fx-controls-react/
MIT License
385 stars 380 forks source link

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

Open andreasbalzer opened 4 months ago

andreasbalzer commented 4 months ago

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)

github-actions[bot] commented 4 months ago

Thank you for submitting your first issue to this project.