I'm trying to add Quick Links to my SharePoint site using the PnP Module. However, when trying to run the command:
Add-PnPPageWebPart -Page $page -DefaultWebPartType "QuickLinks" -Section 2 -Column 1
I get the error:
Add-PnPPageWebPart: Object reference not set to an instance of an object.
I tried multiple things, I even get the error when trying to run the examples from: https://pnp.github.io/powershell/cmdlets/Add-PnPPageWebPart.html
I tried creating the section manually and running examples