-
Notifications
You must be signed in to change notification settings - Fork 379
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
PeoplePicker component with SPBrowser #1349
Comments
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
Thank you for submitting your first issue to this project. |
using 3.13.0 |
If I understand your request correctly, you want to use SPFx Controls / React through a JS Script Editor webpart right? Or does the code provided above is compiled and stored somewhere, to be imported in the Script Editor? I'm confused about the fact that you can't deploy a SPFx solution but you're referring to Edit: or is it a issue when using PeoplePicker control outside of SPFx? If so, it's not possible I think, since it needed a SPFx context object (which is |
Thanks for responding on this. Will mark this closed since using the PeoplePicker outside of SPFx is not possible. |
Category
[ x] Question
Version
Please specify what version of the library you are using: [ 3.10.0 ]
Question
While not able to deploy a solution as Spfx. . . have a react app loaded to sharepoint page via content editor webpart. Using SPBrowser from @pnp/sp to handle authentication, the react app is able to read people fields from a list and display these in a desired table format.
Is it possible to use the PeoplePicker component from @pnp/spfx-controls-react also in the same react app? When attempting, see error "PeoplePicker' cannot be used as a JSX component.
Its instance type 'PeoplePicker' is not a valid JSX element.
The types returned by 'render()' are incompatible between these types.
Type 'ReactElement<IPeoplePickerProps, string | JSXElementConstructor>' is not assignable to type 'ReactNode'.
Property 'children' is missing in type 'ReactElement<IPeoplePickerProps, string | JSXElementConstructor>' but required in type 'ReactPortal'.ts(2786)
index.d.ts(181, 9): 'children' is declared here.
here is the full PeoplePicker component and how it is currently setup.
The text was updated successfully, but these errors were encountered: