SharePoint / sp-dev-docs

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

Debugging field customizer not working in "new" SPO lists #9842

Open diabhoil opened 1 month ago

diabhoil commented 1 month 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

On my dev tenant I got a new SharePoint list design. image

I can not debug my SPFx Field Customizer with this new design. The component is loading (I checked with CTRL+F12 in SPO and I can see the manifest and js files loading in the terminal) but it is never executed.

On my live environment with the old list design everything is working as expected.

Steps to reproduce

  1. Create an SPFx solution with a Field Customizer
  2. Change the serve.json to the correct field name (in my case its "Percent")
  3. Run it on a Tenant with this new list design

Expected behavior

The list should render the field like this: image

diabhoil commented 3 weeks ago

Any news on this?

If I deploy the solution and set ClientSideComponentId of the field to the ID of the field customizer component I am able to debug. But that is not really a solution because it forces me to install a solution to the tenant which is not ready.

I have seen the issue #9873 but the workaround mentioned there - using the display name of the field in the url - is not working in my case.