Forum Discussion
SPFX webpart not added to site after deployment
I have developed a SPFx WebPart using react. When packaging this solution, I use the following commands:
gulp clean
gulp bundle --ship
gulp package-solution --ship
FYI, I'm using these options in my package-solution.json file:
"skipFeatureDeployment": true,
"includeClientSideAssets": true,
"isDomainIsolated": true,
It's worth noting, I've tried both with tenant deployment (skipFeatureDeployment = true/false) and without, same issue. If I don't deploy it to the tenant, adding it to the site shows success but really fails behind the scene as it's no longer "added" after a refresh.
This successfully creates my .sppkg file. No errors.
I then upload the package to my SharePoint sites App Catalog in SharePoint Online (365), successfully, with no errors, then choose deploy, in this case to all sites.
The app in the catalog displays as enabled, valid, deployed and tenant deployed.
However, the app does NOT show up in my site contents. The app does NOT show up in "My apps" for the site. The app does NOT show up in the WebPart picker of a page. If I create a simple helloworld app scaffolded from yo, it works as expected.
So there is something about this app it does NOT like. Where can I track down the logs or other data that would indicate why this app is failing silently and giving me no visual indication there is a problem during deployment? It may also be worth noting that this app WAS working last week when I first deployed it. However, I deleted the app from the catalog and re-deployed several times testing different settings. Now I can't get it to show at all.
- This is some sort of caching issue related to removing/adding the app from the AppCatalog. The only solution I found was to delete the app, then change the guid id in the package-solution.json file, re-deploy. It began showing up again after that.
- JasonEadesCopper ContributorThis is some sort of caching issue related to removing/adding the app from the AppCatalog. The only solution I found was to delete the app, then change the guid id in the package-solution.json file, re-deploy. It began showing up again after that.