Apr 09 2021 12:52 AM
Hi All,
I am trying to Import module but getting below. Can please help me how to resolve this error.
Command: Import-Module SharePointPnPPowerShellOnline
Error:
Import-Module : Could not load type 'OfficeDevPnP.Core.Pages.DefaultClientSideWebParts' from assembly 'OfficeDevPnP.Core, Version=3.28.2012.0, Culture=neutral,
PublicKeyToken=5e633289e95c321a'.
At line:1 char:1
+ Import-Module C:\foldertosavemoduleto\SharePointPnPPowerShellOnline\3 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Import-Module], TypeLoadException
+ FullyQualifiedErrorId : System.TypeLoadException,Microsoft.PowerShell.Commands.ImportModuleCommand
Thanks,
Harish Patil
Apr 15 2021 06:23 AM
The Sharepoint PNP has been deprecated. Go to PnP PowerShell Overview | Microsoft Docs and install the PNP module. @harishpatil