question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

spfx upgrade: MS Graph Client from 1.5.1-plusbeta

See original GitHub issue

Repro:

  • 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:closed
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
baywetcommented, Nov 8, 2018

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

0reactions
waldekmastykarzcommented, Nov 8, 2018

That was exactly the thinking! Thanks for checking and sharing thoughts!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found