pnp / blog

holds all blogs published on the Microsoft 365 Platform Community blog
https://pnp.github.io/blog
MIT License
63 stars 98 forks source link

How to use Microsoft graph toolkit react people picker control in SPFx Webpart? #1458

Open utterances-bot opened 11 months ago

utterances-bot commented 11 months ago

How to use Microsoft graph toolkit react people picker control in SPFx Webpart?

Purpose We can use this when we have a requirement to show Azure AD users in People picker control.

https://pnp.github.io/blog/post/how-to-use-microsoft-graph-toolkit-react-people-picker-control/

TimoRiikonenIF commented 11 months ago

Gives dozens of warnings about too old versions. And then the installation fails. Python 3.1.1 is too new?

8947 error gyp ERR! stack Error: Command failed: C:\Python311\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3]; 8947 error gyp ERR! stack File "", line 1 8947 error gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; 8947 error gyp ERR! stack ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 8947 error gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)? 8947 error gyp ERR! stack 8947 error gyp ERR! stack at ChildProcess.exithandler (node:child_process:419:12)

LuiseFreese commented 11 months ago

adding @chandaniprajapati

chandaniprajapati commented 11 months ago

Hi @TimoRiikonenIF, May I know SPFx version?

TimoRiikonenIF commented 11 months ago

Hi, I think that the root problem is that I haven't installed dev environment properly. Do you have step-by-step instructions somewhere?

chandaniprajapati commented 11 months ago

https://learn.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment

Please setup node version based on SPFx compatibility so for that refer below link, https://learn.microsoft.com/en-us/sharepoint/dev/spfx/compatibility

TimoRiikonenIF commented 11 months ago

No success. You can close this ticket.

Ystävällisin terveisin / Kind Regards, [597DCD45] Timo Riikonen | BI Consultant | Innofactor Plc | Keilaranta 9, FI-02150 Espoo, Finland | +358 40 632 6635 | @.**@.> | www.innofactor.comhttp://www.innofactor.com/ Your data, our passion

From: Chandani Prajapati @.> Sent: torstai 3. elokuuta 2023 8.56 To: pnp/blog @.> Cc: Timo Riikonen @.>; Mention @.> Subject: Re: [pnp/blog] How to use Microsoft graph toolkit react people picker control in SPFx Webpart? (Issue #1458)

https://learn.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment

Please setup node version based on SPFx compatibility so for that refer below link, https://learn.microsoft.com/en-us/sharepoint/dev/spfx/compatibility

- Reply to this email directly, view it on GitHubhttps://github.com/pnp/blog/issues/1458#issuecomment-1663333685, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BARCGRFCT6ONOOQKI6254NTXTM4O3ANCNFSM6AAAAAA2W3Z3OM. You are receiving this because you were mentioned.Message ID: @.**@.>>