PnP-Sites-Core
PnP-Sites-Core copied to clipboard
'ClientSideHostProperties' attribute is not declared.
Category
[ x] Bug
Environment
[ x] Office 365 / SharePoint Online
Expected or Desired Behavior
Trying to use ClientSideHostProperties property on PnPTemplate - CustomActions but while applying template there's error "'ClientSideHostProperties' attribute is not declared"
Observed Behavior
One could use ClientSideHostProperties to set preAllocatedApplicationCustomizerTopHeight and preAllocatedApplicationCustomizerBottomHeight
Steps to Reproduce
ApplyPnPProvisioningTemplate with this section
<pnp:ProvisioningTemplate ID="Apps" Version="1" Scope="RootSite"> <pnp:CustomActions> <pnp:WebCustomActions> <pnp:CustomAction Name="my-client-side-solution" Description="" Location="ClientSideExtension.ApplicationCustomizer" Title="my-solution" Sequence="0" Rights="" RegistrationType="None" ClientSideComponentId="8d1db129-f7c6-4af8-8721-818fa401e17d" ClientSideComponentProperties="{}" ClientSideHostProperties="{"preAllocatedApplicationCustomizerTopHeight":"60","preAllocatedApplicationCustomizerBottomHeight":"18"}" /> </pnp:WebCustomActions> </pnp:CustomActions> </pnp:ProvisioningTemplate>
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
I am also facing same issue and i am adding ClientSideHostProperties inside pnp:CustomAction and i am unable to run command as ClientSideHostProperties is not exist in pnp:CustomAction schema. Please let me know when schema changes will be released.