Command set extension - Only working with gulp serve and not working when deploying
Category
- [x] Question
- [ ] Typo
- [x] Bug
- [ ] Additional article idea
Expected or Desired Behavior
On deploying the app using (gulp bundle --ship and gulp package-solution --ship), the app should load the Custom command set (Command one and Command two)
Observed Behavior
Started facing issues with the Command set extension in this article. On running gulp-serve the extension loads and everything works fine. But, on bundling packaging the solution and deploying the package, the app does not load on any List/Library.
Found the error start appearing on the console as shown in the screen shot below:

Error: Refused to load the script 'https://r4.res.office365.com/footprint/v2.7/scripts/fp.js' because it violates the following Content Security Policy directive: "script-src 'self' https://contentstorage.osi.office.net https://swx.cdn.skype.com https://res.delve.office.com https://lpcres.delve.office.com https://static.sharepointonline.com https://widget.uservoice.com https://by2.uservoice.com https://www.bing.com/api/maps/ https://www.bing.com/rms/ https://spoprod-a.akamaihd.net https://publiccdn.sharepointonline.com https://ajax.aspnetcdn.com https://spoprod-a.akamaihd.net/files/odsp-next-prod_2019-03-15-sts_20190328.001/ https://r1.res.office365.com https://webshell.suite.office.com https://shellux.msocdn.com https://shellprod.msocdn.com https://shellppe.msocdn.com https://r1.res.office365.com https://c1-excel-15.cdn.office.net https://c1-powerpoint-15.cdn.office.net https://c1-visio-15.cdn.office.net https://c1-word-view-15.cdn.office.net 'unsafe-eval' 'nonce-24d0a809-d597-4b5f-9039-730ad3c3ed30'".
- The site has the the option set to false to allow the customization:
Set-SPOSite -Identity https://
.sharepoint.com -DenyAddAndCustomizePages $false
Steps to Reproduce
1)Follow the steps in the article and deploy the same to the app catalog. 2) Add the APP to the site
Configurations
"includeClientSideAssets": true, "isDomainIsolated": false,
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Just another update, have tested the app package in another tenants, it is not working on any tenant. Can you please look into on priority.
My bad, was checking it on the Library and configured it to be loaded on the List: <ClientSideComponentInstance Title="StartWf" Location="ClientSideExtension.ListViewCommandSet.CommandBar" ListTemplateId="101" (This was pointing to 100) Properties="{"startWorkflow":"Start Workflow is clicked"}" ComponentId="38d2f41e-981f-4dbc-883a-bbbc3a22d4d2" />
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