pnp / cli-microsoft365

Manage Microsoft 365 and SharePoint Framework projects on any platform
https://aka.ms/cli-m365
MIT License
909 stars 317 forks source link

Bug report: `m365 spo page clientsidewebpart add` does not work on vertical section #6265

Open hsantens opened 3 weeks ago

hsantens commented 3 weeks ago

Priority

(Medium) I'm annoyed but I'll live

Description

When a SharePoint page has a vertical section (create manually or by CLI) you cannot add a webpart to this section by m365 spo page clientsidewebpart add. Error is {"error":"Invalid section '2'"} However, the m365 spo page section list and m365 spo page section get returns the section.

Steps to reproduce

Expected results

The webpart being added to the vertical section

Actual results

Webpart is not added. Error: {"error":"Invalid section '2'"}

Diagnostics

No response

CLI for Microsoft 365 version

v8.0.0

nodejs version

v20.12.0

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

No response

Additional Info

No response

milanholemans commented 3 weeks ago

Thank you @hsantens for reporting this issue. I was able to reproduce it. We'll have a look at it.