spfx upgrade: MS Graph Client from 1.5.1-plusbeta
See original GitHub issueRepro:
- Have a project from 1.5.1 (with plus beta)
- Implement a graph call (see sample)
- Tested with cli version 1.8.0
Issue: The cli doesn’t instruct to update the code when it does it for the AADHttpClient
Expected: The report to contain instructions to update my code.
Sample
this..context.serviceScope.consume(MSGraphClient.serviceKey);
Should be
this.context.msGraphClientFactory.getClient();
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Using MS Graph from SharePoint Framework 1.5.1 / 1.6
Procedure used to deploy SPFx web part: gulp bundle --ship; gulp package-solution --ship; move .sppkg file to the app catalog; approve the app ......
Read more >Use Microsoft Graph in your solution - SharePoint
Create a SharePoint Framework project for Microsoft Graph usage; Including Microsoft Graph types for easier TypeScript development; Updating ...
Read more >Samples by SPFx Version - SharePoint Framework Client ...
A gallery of SPFx client-side web part samples created by the community. ... Read / update MS Graph Custom Schema Extensions. React. Read...
Read more >SPFx - Connect to MS Graph with MSGraphClient
Develop SharePoint Framework Web Part. Open a command prompt. Create a directory for SPFx solution. md ms-graph-client.
Read more >Microsoft.Graph 4.49.0 - NuGet
Version Downloads Last updated
5.0.0‑rc.1 316 10 days ago
5.0.0‑preview.14 2,695 a month ago
5.0.0‑preview.13 7,592 2 months ago
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

hum ok so we might end up in a dead end in some cases with plusbeta based solutions. I think I’m ok with that, I think we can assume people on plusbeta know what they are doing, that they were testing a specific aspect of SPFX and know what’s the upgrade path (if any is required/exists). Thanks for the discussion! Closing
That was exactly the thinking! Thanks for checking and sharing thoughts!