Forum Discussion
Chris Doran
Jul 14, 2021Copper Contributor
Add-PnPClientSideWebPart : One or more errors occurred.
Why is this happening? Does not matter what kind of web part, this one a document library, I still get the same kind of error message. Using the latest version of PnP for SharePoint Online. I can cre...
Chris Doran
Jul 14, 2021Copper Contributor
Ran my script like this to login:
#Connect to PnP Online
Connect-PnPOnline -Url $SiteURL -interactive
Delete/Remove all versions of PnpSharePoint version as
pnp.powershell has replace those deprecated version, https://pnp.github.io/powershell/.
Get-Module -Name *SharePointPnP* -ListAvailable | Select *
Uninstall-Module SharePointPnPPowerShellOnline -Force –AllVersions (This did not work. So I found the path in the first output and deleted.)
Find the path it is located. Mine was located here C:\Users\USERAccount\AppData\Local\Apps (I did leave the 2.0 folder)
#Connect to PnP Online
Connect-PnPOnline -Url $SiteURL -interactive
Delete/Remove all versions of PnpSharePoint version as
pnp.powershell has replace those deprecated version, https://pnp.github.io/powershell/.
Get-Module -Name *SharePointPnP* -ListAvailable | Select *
Uninstall-Module SharePointPnPPowerShellOnline -Force –AllVersions (This did not work. So I found the path in the first output and deleted.)
Find the path it is located. Mine was located here C:\Users\USERAccount\AppData\Local\Apps (I did leave the 2.0 folder)