Hi @Umair Aslam,
Generally the issue of some users seeing things and others not revolves around permissions. Please check if the user is an external user. External users should have Read permissions on the app catalog site where you have deployed SPFx solution.
You have to grant permissions to All Users(membership) on app catalog site where your SPFx solution is deployed.
Follow below steps:
- Turn ON external sharing for your M365 tenant.
- Download & open SharePoint Online Management Shell and run below commands using administrator account:
Connect-SPOService -Url https://<tenant>-admin.sharepoint.com Set-SPOTenant -ShowAllUsersClaim $true
- Grant "Read" permissions to All Users(membership) group on App Catalog (
https://<tenant>-admin.sharepoint.com/sites/AppCatalogSite/_layouts/user.aspx
) or on "Client Side Assets" library (https://<tenant>-admin.sharepoint.com/sites/AppCatalogSite/ClientSideAssets/AllItems.aspx
) in App Catalog site as shown below:
Reference: SPFx web part error for few users : Failed to load component
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.