sp-dev-fx-controls-react
sp-dev-fx-controls-react copied to clipboard
FilePicker JSX element class does not support attributes because it does not have a 'props' property
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)
Thank you for submitting your first issue to this project.
Hi @andreasbalzer,
When you mention "React app", are you still talking about a SPFx solution?
If so, would you mind giving a code snippet in order to better understand what you're trying to do?
Closing this, feel free to reopen it if needed.