App package always returns error during deployment

New Contributor

I have a SPFX Extension solution using react and PnP modules to create a custom command set. When i try to package and deploy to the SharePoint App Catalog, I am getting following error

> Invalid SharePoint App package. Error: Name cannot begin with the '<' character, hexadecimal value 0x3C. Line 10, position 5.

my element.xml under sharepoint folder is like this

 

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Title="LibraryExtension"
RegistrationId="100"
RegistrationType="List"
Location="ClientSideExtension.ListViewCommandSet.CommandBar"
ClientSideComponentId="ada4bf2b-a6c1-4074-a273-9d220c815e11"
</CustomAction>
</Elements>

 

I found a missing of the closing > at the end of ClientSideComponentId value. But when I add >, the error will change to Object reference set to an instance of an object.

Can anybody help me on this. Thanks in advance.

0 Replies