SPFx Web Part Property Pane Issue Across Different SharePoint Tenants

Umair Aslam 20 Reputation points
2024-05-29T22:05:58.03+00:00

As a developer working with SharePoint Framework (SPFx), I recently encountered an interesting issue that I believe many of you might face at some point.

Adding a Dropdown to the Property Pane

In my latest SPFx project, I needed to add a dropdown to the property pane of a web part. The dropdown would allow users to select an option that influences the web part's behavior.

The Issue: Dropdown Not Showing in One Tenant
After deploying the web part, I noticed something peculiar: the dropdown appeared perfectly in one SharePoint tenant but was completely missing in another.
Did lot search but did not find any solution. I would really appreciate if someone help me.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,150 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,783 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 33,176 Reputation points Microsoft Vendor
    2024-05-30T01:51:09.41+00:00

    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:

    1. Turn ON external sharing for your M365 tenant.
    2. 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
      
    3. 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:

    enter image description here

    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.