CategoriesMicrosoft 365SharePoint Framework

SPFx Failed to load component for guest users

If you’ve ever developed a custom Web Part for SharePoint, and “Failed to load components” message occures for guest users, here you can find possibile solution to fix it.

SPFx Failed to load component guest users

I develop a SPO Webpart…it run correctly but when my customer share site with guest user, it give us and error:

Something like this:

[SPLoaderError.loadComponentError]:

***Failed to load component "12345-c123-a1be27-223a-xxxx0" (MyWebpart Name).

Possible fix path

A possible problem is guest users can’t acess to ClientSideAssets library on AppCatalog site, so one way is:

  • Enable external sharing on AppCatalog site
  • Break permissions on ClientSideAssets library and give reading permission for guest users

If don’t work, you can try also to restore inherits permission and put guest users inside readers group of app catalog site. In this case, guest can Access to all site resources as reader, but if it work you can continue investigate on problem.

Have a nice day

My Agile Privacy
This website uses technical and profiling cookies. Clicking on "Accept" authorises all profiling cookies. Clicking on "Refuse" or the X will refuse all profiling cookies. By clicking on "Customise" you can select which profiling cookies to activate.
Warning: some page functionalities could not work due to your privacy choices