Nov 17 2020 07:02 PM
We are getting the below error while trying to deploy SPFX webpart in SharePoint .We are using SharePoint 2019 On-premise.
When generating the package it does not generate any errors but when I upload it to the App Catalog library it gives me the following errors
There were errors when validating the App manifest.: Xml Validation Exception: 'The 'IsClientSideSolution' attribute is not declared.' on line '1', position '251'., Xml Validation Exception: 'The element 'Properties' in namespace 'http://schemas.microsoft.com/sharepoint/2012/app/manifest'
has incomplete content. List of possible elements expected: 'StartPage' in namespace 'http://schemas.microsoft.com/sharepoint/2012/app/manifest'.'
on line '1', position '342'., Xml Validation Exception: 'The element 'App' in namespace 'http://schemas.microsoft.com/sharepoint/2012/app/manifest'
has incomplete content. List of possible elements expected: 'AppPrincipal' in namespace 'http://schemas.microsoft.com/sharepoint/2012/app/manifest'.'
on line '1', position '355'.
Nov 24 2020 08:47 AM
@Merindiya In the root of your project, you will find a file called ".yo-rc.json", can you please past the contents of that?
I am going to guess that the targeted environment for your SPFx solution is not for on-premises. You have to use SPFx 1.4.1 for on-premises 2019.
Feb 04 2021 11:51 PM
Apologies for late reply
Nov 01 2023 03:24 AM
I had the same issue after installing 'SharePoint Server 2016 Client Components SDK'
https://www.microsoft.com/en-us/download/details.aspx?id=51679
that overrides the appmanifests.xsd file under
C:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\TEMPLATE\XML\appmanifests.xsd
To fix the issue, you can install 'SharePoint Online Client Components SDK'
https://www.microsoft.com/en-us/download/details.aspx?id=42038