Getting error while Import SharePoint online module

Copper Contributor

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

1 Reply

The Sharepoint PNP has been deprecated. Go to PnP PowerShell Overview | Microsoft Docs and install the PNP module. @harishpatil