I am not sure if this is the right Repo to report this issue.
I tried to create a new spfx extension using the yo generator @microsoft/generator-sharepoint
The generator includes this File: package-solution.json
Within this file the ClientSideInstance.xml is written as lower case.
If you build this solution on a Linux based system (e.g. Azure DevOps Build using Ubuntu as this is the default for NPM Builds), you will run into an error
Found Element Manifest: elements.xml
Error - 'package-solution sub task errored'
Could not find Element Manifest: sharepoint/assets/clientsideinstance.xml
If you alter the elements.xml using the exact file name, the build will be successful.
"assets": {
"elementManifests": [
"elements.xml",
**"ClientSideInstance.xml"**
]
}
1) Install Sharepoint Generator for yo (install yo if not installed)
npm install @microsoft/generator-sharepoint -g
2) Create a new extention using the yo SharePoint Generator
yo @microsoft/sharepoint --solution-name "solution-name" --component-type "extension" --component-description "List Command Bar Extention" --environment "spo" --extension-type "ListViewCommandSet" -- skip-feature-deployment --component-name "component-name"
3) Within the elements.xml the filename will be lower case. Builds on Linux Systems will fail.
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Good catch... renamed the issue to be more specific on what's going on...
FYI - @patmill @VesaJuvonen, flagged for next SPFx drop?
@andrewconnell. assigned to dev for triage... will let you know soon if we can make it for the next drop ;-)
This fix has been merged and will be available in next SPFx drop cc: @lucabandMSFT.
Fixed in @microsoft/[email protected]
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues
Most helpful comment
This fix has been merged and will be available in next SPFx drop cc: @lucabandMSFT.