Can't add a SPFx package that includes an Application Customizer to the App Catalog
Category
- [ ] Question
- [ ] Typo
- [x ] Bug
- [ ] Additional article idea
Expected or Desired Behavior
When creating a new SharePoint Framework project, you should be able to add the generated package to the App Catalog.
Observed Behavior
As soon as we add an Application Customizer, the gulp package-bundle generates an invalid package that can't be added to the App Catalog. When uploaded, the package is marked as invalid and the Trust dialog does not pop up. Even if you add the Elements.xml to add the CustomAction and the features entry in the package-solution.json, the package is still considered as invalid. The "Hello World" project (yo @microsoft/sharepoint without any customization) doesn't work either.

At this point, the only way to "serve" Application Customizer is to load it through the URL which is not the optimal way to test Enterprise Scale applications.
Steps to Reproduce
- Create a SharePoint Framework project with an Application Customizer
- Run gulp bundle
- Run gulp package-solution
- Drag & Drop the generated package to you App Catalog
- Invalid Package
Hi @sebastienlevert, since this has been working properly for numerous people, we would need some additional details around the scenario or the package. Can you check the error details around the package by clicking unavailable apps in this UI you provided. That should give you insights on the actual error what caused the package not to be valid. This would be also needed for us to give any additional support around this. thx.
Hi @sebastienlevert, did you had a chance to check the error description from the unavailable apps tab in the app catalog? - that would give us more insights on what actually was wrong in your package. thx.
Yep, definitely working for me too - as shown at http://www.sharepointnutsandbolts.com/2017/06/SPFx-Application-Customizer-Global-JS-Page-Header.html
Could it be a path length issue somewhere perhaps, or an issue with the package-solution.json file?
Cheers,
COB.
Hi @sebastienlevert, did you had a chance to check the error description from the unavailable apps tab in the app catalog? - that would give us more insights on what actually was wrong in your package.
We'll close the issue soon unless we can get a response for this, so would appreciate a comment around this. Thx.
Closing this for now, due no response. Please reopen, if this is still an issue for you with requested details. Thx.
Shame this got no reply from the original poster, I am having the same problem with a package now, I opened a new issue: https://github.com/SharePoint/sp-dev-docs/issues/2288
Can you guys jump in there an perhaps we can investigate this further? It is currently happening to me on 2 tenants while 1 tenant is working ok with the same package.
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