App package always returns error during deployment

Copper 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="">


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