I am creating an SPFx Web Part that will provision a list instance upon installation. I have successfully created and provisioned a basic list, however i cannot seem to customize it by altering the schema given in this guide.
So i decided to try creating the list by hand, and use the SharePoint PnP command
Get-PnPList "ListTitle" -includes SchemaXml
to provide a template with the correct data.
I was able to get this xml, but it doesnt seem to be in the correct formatting. This also caused an error in installation to a site collection.
Essentially, I am wondering if it is possible to download a schema from an existing list and use it while provisioning a new list instance using an SPFx Web part. And if so, what am i doing wrong?