SPFX Package Error in SharePoint

%3CLINGO-SUB%20id%3D%22lingo-sub-1898558%22%20slang%3D%22en-US%22%3ESPFX%20Package%20Error%20in%20SharePoint%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1898558%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20getting%20the%20below%20error%20while%20trying%20to%20deploy%20SPFX%20webpart%20in%20SharePoint%20%26nbsp%3B.We%20are%20using%20SharePoint%202019%20On-premise.%3C%2FP%3E%3CP%3E%3CSPAN%3EWhen%20generating%20the%20package%20it%20does%20not%20generate%20any%20errors%20but%20when%20I%20upload%20it%20to%20the%20App%20Catalog%20library%20it%20gives%20me%20the%20following%20errors%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThere%20were%20errors%20when%20validating%20the%20App%20manifest.%3A%20Xml%20Validation%20Exception%3A%20'The%20'IsClientSideSolution'%20attribute%20is%20not%20declared.'%20on%20line%20'1'%2C%20position%20'251'.%2C%20Xml%20Validation%20Exception%3A%20'The%20element%20'Properties'%20in%20namespace%20'%3CA%20href%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fsharepoint%2F2012%2Fapp%2Fmanifest%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttp%3A%2F%2Fschemas.microsoft.com%2Fsharepoint%2F2012%2Fapp%2Fmanifest%3C%2FA%3E'%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3Bhas%20incomplete%20content.%20List%20of%20possible%20elements%20expected%3A%20'StartPage'%20in%20namespace%20'%3CA%20href%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fsharepoint%2F2012%2Fapp%2Fmanifest%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttp%3A%2F%2Fschemas.microsoft.com%2Fsharepoint%2F2012%2Fapp%2Fmanifest%3C%2FA%3E'.'%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3Bon%20line%20'1'%2C%20position%20'342'.%2C%20Xml%20Validation%20Exception%3A%20'The%20element%20'App'%20in%20namespace%20'%3CA%20href%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fsharepoint%2F2012%2Fapp%2Fmanifest%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttp%3A%2F%2Fschemas.microsoft.com%2Fsharepoint%2F2012%2Fapp%2Fmanifest%3C%2FA%3E'%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3Bhas%20incomplete%20content.%20List%20of%20possible%20elements%20expected%3A%20'AppPrincipal'%20in%20namespace%20'%3CA%20href%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fsharepoint%2F2012%2Fapp%2Fmanifest%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttp%3A%2F%2Fschemas.microsoft.com%2Fsharepoint%2F2012%2Fapp%2Fmanifest%3C%2FA%3E'.'%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3Bon%20line%20'1'%2C%20position%20'355'.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

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'.

2 Replies

@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.

@Beau Cameron 

Apologies for late reply 

 

{
  "@microsoft/generator-sharepoint": {
    "isCreatingSolution"true,
    "environment""onprem",
    "version""1.11.0",
    "libraryName""process-hierarchy",
    "libraryId""57db1213-4b82-4694-8ab7-8516a2e11f5a",
    "packageManager""npm",
    "componentType""webpart"
  }
}
 
 
This is my yo-rc file