none
strange error in webparts and extensions that use MSGraphClient

    Question

  • This is relative to sharepoint online:

    Today i tested some of my apps created with sharepoint framework and they started to show a erro in the webparts and extensions that use MSGraphClient. Before it was working normally.

    I importing the MSGraphClient from sp-client-preview and i get the similar error bellow more than one tenant.

    (***Failed to load component "4d5eb168-6729-49a8-aec7-0e397f486b6e" (SPClientPreview). Original error: ***loadComponent() returned an empty object for component "4d5eb168-6729-49a8-aec7-0e397f486b6e" (SPClientPreview).). Original error: {3} at t [as constructor] (listview-host-assembly_default_e755154cda130cbe2be1b4ac2da90def.js:77) at new t (listview-host-assembly_default_e755154cda130cbe2be1b4ac2da90def.js:342) at Function.e.buildErrorWithVerboseLog (listview-host-assembly_default_e755154cda130cbe2be1b4ac2da90def.js:342) at Function.e.buildLoadComponentError (listview-host-assembly_default_e755154cda130cbe2be1b4ac2da90def.js:342) at listview-host-assembly_default_e755154cda130cbe2be1b4ac2da90def.js:342

    Is there any update occurring in microsoft sharepoint online servers?


    • Edited by Vhwn Wednesday, November 7, 2018 3:55 PM
    Wednesday, November 7, 2018 3:54 PM

All replies

  • Hi,

    I did test in my local, if I import MSGraphClient from "@microsoft/sp-client-preview", I got same error as you(Tested in SPFx 1.51plusbeta and SPFx 1.60 same error).

    import { MSGraphClient } from "@microsoft/sp-client-preview"

    Then, I upgrade SPFx to 1.60 and import MSGraphClient from '@microsoft/sp-http', the error gone.

    import { MSGraphClient } from '@microsoft/sp-http';

    Best Regards,

    Lee


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Thursday, November 8, 2018 8:59 AM
  • Thank you for you reply.

    I updated my project following this article https://blog.mastykarz.nl/upgrade-sharepoint-framework-project-office-365-cli/ and i was able import msgraph, but now i getting the following error:
    error TS5055: Cannot write file 'filename.d.ts' because it would overwrite input file.

    its happening only with two files. I searched for a cause but nothing help me.


    • Edited by Vhwn Friday, November 9, 2018 1:56 PM
    Friday, November 9, 2018 1:56 PM
  • Hi,

    The thread you shared targets to V1.5, could you try with below video guideline.

    https://www.youtube.com/watch?v=dWmuXjXlZV8

    Best Regards,

    Lee


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Tuesday, November 13, 2018 1:33 AM