Getting error while Import SharePoint online module

Occasional 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



Import-Module : Could not load type 'OfficeDevPnP.Core.Pages.DefaultClientSideWebParts' from assembly 'OfficeDevPnP.Core, Version=3.28.2012.0, Culture=neutral,
At line:1 char:1
+ Import-Module C:\foldertosavemoduleto\SharePointPnPPowerShellOnline\3 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Import-Module], TypeLoadException
+ FullyQualifiedErrorId : System.TypeLoadException,Microsoft.PowerShell.Commands.ImportModuleCommand



Harish Patil

1 Reply

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