SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.23k stars 992 forks source link

Unable to execute SPFx webpart script in mobile view for external users. #9490

Open deathracr opened 5 months ago

deathracr commented 5 months ago

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

Windows

What browser(s) / client(s) have you tested

Additional environment details

Describe the bug / error

In the mobile view in Chrome (or Edge) when we visit the site with the SPFx webpart, we receive an error: image

The exact same page in the desktop view renders without an issue: image

Steps to reproduce

  1. Used the following command to allow me to grant guest user access to SPFx app. Connect-SPOService -Url https://[YOUR TENANCY NAME]-admin.sharepoint.com Set-SPOTenant -ShowAllUsersClaim $true
  2. Open Chrome or Edge
  3. Open the Sharepoint URL that is shared with External users
  4. Sign into Sharepoint with a guest user account
  5. Right click on the web page, select Inspect from the context menu
  6. Click to Toggle device emulation and set to mobile device.
  7. Navigate to the page that contains the webpart
  8. Observe the error.
  9. Click Toggle device emulation button
  10. Refresh the page in the desktop view
  11. Observe the webpart execute successfully

Expected behavior

Expect the webpart to render on a mobile device with a guest user account the same way it would for a licensed tenant user.

ghost commented 5 months ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

Lord-Vendreth commented 6 days ago

Hello there... I have the same problem. Are there any updates since the last entries?