SOLVED

SPFx Web part not available to install

%3CLINGO-SUB%20id%3D%22lingo-sub-124215%22%20slang%3D%22en-US%22%3ESPFx%20Web%20part%20not%20available%20to%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-124215%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20created%20a%20web%20part%2C%20and%20installed%20it.%20It%20appears%20in%20the%20app%20catalog%20under%20%22Apps%20for%20SharePoint%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20is%20available%20if%20I%20set%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%22skipFeatureDeployment%22%3A%20true%3C%2FPRE%3E%3CP%3EHowever%2C%20if%20this%20is%20set%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%22skipFeatureDeployment%22%3A%20false%3C%2FPRE%3E%3CP%3EThe%20app%20is%20not%20available%20for%20installation%20on%20sites%2C%20or%20other%20site%20collections.%20It%20does%20not%20appear%20in%20%22Site%20contents%20%26gt%3B%20Your%20Apps%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3BAny%20ideas%20what%20I%20may%20be%20doing%20wrong%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-124215%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-131893%22%20slang%3D%22en-US%22%3ERe%3A%20SPFx%20Web%20part%20not%20available%20to%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-131893%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F9907%22%20target%3D%22_blank%22%3E%40Joel%20Rodrigues%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20the%20alternative%20fix!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYes%2C%20the%20modal%20did%20appear%20after%20each%20installation%20attempt.%20Whilst%20testing%20Franck's%20fix%2C%20I%20noticed%20that%2C%20after%20removing%20and%20reinstalling%20the%20web%20part%2C%20and%20before%20adding%20it%20to%20a%20specific%20site%20collection%2C%20that%20it%20was%20available%20on%20the%20site%20collection%20under%20%22From%20Your%20Organisation%22.%20This%20was%20even%20after%20I%20had%20removed%20it%20from%20both%20recycle%20bins.%20This%20did%20not%20occur%20the%20first%20time%20after%20the%20version%20number%20was%20changed.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-131863%22%20slang%3D%22en-US%22%3ERe%3A%20SPFx%20Web%20part%20not%20available%20to%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-131863%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20seen%20this%20happening%20before%20when%20the%20modal%20dialog%20to%20confirm%20deployment%20fails%20to%20display%20after%20the%20package%20file%20is%20uploaded%20to%20the%20catalog.%26nbsp%3BIf%20that%20is%20the%20case%2C%20simply%20select%20the%20app%20and%20press%20the%20option%20to%20Deploy%20from%20the%20ribbon.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F25364%22%20target%3D%22_blank%22%3E%40Alan%20Trafford%3C%2FA%3E%26nbsp%3Bcan%20you%20remember%20if%20the%20modal%20dialog%20was%20displayed%20on%20the%20first%20attempt%3F%3C%2FP%3E%0A%3CP%3EThe%20solution%20from%20Franck%26nbsp%3Bwill%20also%20work%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-131773%22%20slang%3D%22en-US%22%3ERe%3A%20SPFx%20Web%20part%20not%20available%20to%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-131773%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1019%22%20target%3D%22_blank%22%3E%40Franck%20Cornu%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI've%20now%20have%20a%20chance%20to%20try%20your%20suggestion%2C%20and%20it%20worked.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20the%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-126113%22%20slang%3D%22en-US%22%3ERe%3A%20SPFx%20Web%20part%20not%20available%20to%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-126113%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1019%22%20target%3D%22_blank%22%3E%40Franck%20Cornu%3C%2FA%3EAt%20the%20moment%2C%20I%20can't%20try%20your%20suggestion%20on%20the%20problematic%20web%20part.%20However%2C%20I%20did%20create%20a%20new%20web%20part%20using%20the%20Hello%20World%20example%2C%20and%20I%20was%20able%20to%20install%20this%20on%20different%20site%20collections.%20This%20make%20me%20think%20there%20is%20an%20issue%20with%20the%20original%20web%20part.%20I'm%20hoping%20I%20can%20test%20your%20solution%20in%20the%20next%20few%20days.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-125376%22%20slang%3D%22en-US%22%3ERe%3A%20SPFx%20Web%20part%20not%20available%20to%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-125376%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1019%22%20target%3D%22_blank%22%3E%40Franck%20Cornu%3C%2FA%3EThanks%2C%20I'll%20give%20it%20a%20try.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-125297%22%20slang%3D%22en-US%22%3ERe%3A%20SPFx%20Web%20part%20not%20available%20to%20install%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-125297%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F25364%22%20target%3D%22_blank%22%3E%40Alan%20Trafford%3C%2FA%3E%26nbsp%3Byou%20can%20try%20to%20completely%20remove%20your%20app%20from%20app%20catalog%20and%20then%2C%20in%20the%20%3CEM%3Epackage-solution.json%3C%2FEM%3E%20file%2C%20increment%20you%20package%20version%20and%20re-upload%20your%20app%20to%20the%20app%20catalog.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Hi

 

I've created a web part, and installed it. It appears in the app catalog under "Apps for SharePoint".

 

It is available if I set:

 

"skipFeatureDeployment": true

However, if this is set:

 

"skipFeatureDeployment": false

The app is not available for installation on sites, or other site collections. It does not appear in "Site contents > Your Apps".

 

 Any ideas what I may be doing wrong?

 

Thanks.

6 Replies
Highlighted
Best Response confirmed by Alan Trafford (Contributor)
Solution

@Alan Trafford you can try to completely remove your app from app catalog and then, in the package-solution.json file, increment you package version and re-upload your app to the app catalog.

Highlighted

@Franck CornuThanks, I'll give it a try.

Highlighted

@Franck CornuAt the moment, I can't try your suggestion on the problematic web part. However, I did create a new web part using the Hello World example, and I was able to install this on different site collections. This make me think there is an issue with the original web part. I'm hoping I can test your solution in the next few days.

Highlighted

Hi @Franck Cornu

 

I've now have a chance to try your suggestion, and it worked.

 

Thanks for the help.

Highlighted

I have seen this happening before when the modal dialog to confirm deployment fails to display after the package file is uploaded to the catalog. If that is the case, simply select the app and press the option to Deploy from the ribbon.

@Alan Trafford can you remember if the modal dialog was displayed on the first attempt?

The solution from Franck will also work :)

Highlighted

Hi @Joel Rodrigues

 

Thanks for the alternative fix!

 

Yes, the modal did appear after each installation attempt. Whilst testing Franck's fix, I noticed that, after removing and reinstalling the web part, and before adding it to a specific site collection, that it was available on the site collection under "From Your Organisation". This was even after I had removed it from both recycle bins. This did not occur the first time after the version number was changed.