Adding react-pages-hierarchy webpart with pnp powershell doesn't work correctly #5341
Open
1 of 9 tasks
Labels
sample: react-pages-hierarchy
type:bug-suspected
Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs
Disclaimer
Yes
Sample
https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-pages-hierarchy
Contributor(s)
@bogeorge @techienickb @tmaestrini
What happened?
When attempting to add the "react-pages-hierarchy" WebPart to a SharePoint page using PnP PowerShell, it initially appears on the client side. However, if I add another WebPart to the same page afterward, the "react-pages-hierarchy" WebPart vanishes.
Observed Behavior:
How I add the Webpart with PnP Powershell:
Add-PnPPageWebPart -Page $pageName -Component "Page Hierarchy" -Section 1 -Column 1
Steps to reproduce
Expected behavior
The "react-pages-hierarchy" WebPart should be added to page.controls and persist on the page, similar to other WebParts added via PnP PowerShell.
Target SharePoint environment
SharePoint Online
Developer environment
Windows
Browsers
What version of Node.js is currently installed on your workstation?
v18.20.3
What version of Node.js is required by the sample?
18
Paste the results of SPFx doctor
I am unable to provide the results of m365 spfx doctor -o text due to environment restrictions. If this information is crucial for resolving the issue, please let me know, and I can try to provide additional relevant details about my SPFx environment manually.
Additional environment details
No response
The text was updated successfully, but these errors were encountered: