Forum Discussion
Getting error while Import SharePoint online module
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
- DeanRBCopper Contributor
The Sharepoint PNP has been deprecated. Go to https://docs.microsoft.com/en-us/powershell/sharepoint/sharepoint-pnp/sharepoint-pnp-cmdlets?view=sharepoint-ps and install the PNP module. harishpatil