SharePoint Framework documentation propertyPaneConfiguration
-
12-12-2020 - |
Question
I'm finally getting around to looking at the SharePoint Framework again (working on it in my few spare cycles when I don't have client work). The documentation says "Replace the propertyPaneConfiguration method with the code below which adds the new property pane fields and maps them to their respective typed objects." I replaced the code as instructed and I get an error "Cannot find name IPropertyPaneConfiguration" and "Return type of public property getter from exported class has or is using private name IPropertyPaneConfiguration" on the line:
protected get propertyPaneConfiguration(): IPropertyPaneConfiguration {
Should that read
protected get propertyPaneSettings(): IPropertyPaneSettings {
Solution
Your code should be
protected get propertyPaneSettings(): IPropertyPaneSettings
Looks like the documentation is incorrect. I'll log a bug to fix it.
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange