Apps added to App Catalog not available for installation on other sites

%3CLINGO-SUB%20id%3D%22lingo-sub-100780%22%20slang%3D%22en-US%22%3EApps%20added%20to%20App%20Catalog%20not%20available%20for%20installation%20on%20other%20sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-100780%22%20slang%3D%22en-US%22%3E%3CP%3EI%20started%20with%20SPFx%20development%20recently.%20I%20packaged%20a%20client%20side%20web-part%20as%20a%20file%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Ehelloworld-webpart.sppkg%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efollowing%20Microsoft's%20tutorial.%20Then%20I%20uploaded%20it%20to%20my%20Apps%20Catalog%20site.%20Though%20it%20was%20uploaded%20to%20the%20Apps%20Catalog%20successfully%2C%20but%20it's%20not%20available%20for%20installation%20on%20any%20of%20the%20sites.%20I%20tried%20the%20gear%20'Add%20an%20App'%2C%20tried%20searching%20for%20'helloworld'%2C%20but%20couldn't%20find%20it.%3C%2FP%3E%3CP%3EAny%20suggestion%2Fhelp%20on%20this%20would%20be%20much%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-101923%22%20slang%3D%22en-US%22%3ERe%3A%20Apps%20added%20to%20App%20Catalog%20not%20available%20for%20installation%20on%20other%20sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-101923%22%20slang%3D%22en-US%22%3E%3CBR%20%2F%3E1%3CBR%20%2F%3Edown%20vote%3CBR%20%2F%3Eaccept%3CBR%20%2F%3EI%20figured%20it%20out.%20The%20problem%20was%20with%20my%20webpart%20code.%20I%20were%20getting%20this%20error%20before%20packaging%20the%20webpart%3A%3CBR%20%2F%3E%3CBR%20%2F%3E-%26gt%3B%20Cannot%20find%20module%20'helloWorldStrings'%3CBR%20%2F%3E%3CBR%20%2F%3EI%20removed%20this%20error%20first%2C%20then%20again%20packaged%20the%20solution%20and%20uploaded%20it%20to%20the%20Apps%20Catalog%20site.%20This%20time%20it%20is%20working%20fine%20as%20expected.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-100794%22%20slang%3D%22en-US%22%3ERe%3A%20Apps%20added%20to%20App%20Catalog%20not%20available%20for%20installation%20on%20other%20sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-100794%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Khan%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20try%20with%20below%20steps%20and%20deploy%20again%20your%20webaprt%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1)%20%26nbsp%3BChange%20deployment%20location%26nbsp%3B%20in%20%3CSTRONG%3Ewrite.mainfests.json%3C%2FSTRONG%3E%20file%20under%20%3CSTRONG%3Econfig%3C%2FSTRONG%3E%20folder%20in%20your%20project%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F19201i41876F5A7D9B4415%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%222017-08-25_13-59-07.png%22%20title%3D%222017-08-25_13-59-07.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2)%20run%20these%202%20commends%20.%20package%20will%20create%20and%20stored%20in%20temp%2Fdeploy%20%26nbsp%3Bfolder%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3Egulp%20%E2%80%93ship%20%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3Egulp%20package-solution%20%E2%80%93ship%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E3)%26nbsp%3B%3C%2FSTRONG%3ECreate%20web%20part%20folder%20under%20Store%20Assets%20%2C%26nbsp%3BCopy%20complete%20deploy%20folder%20and%20paste%20in%20your%20asserts%20folder%20in%20SharePoint.%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CA%20href%3D%22https%3A%2F%2Fsharepoint.com%2Fsites%2FappCatalog%2FStoreAssets%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsharepoint.com%2Fsites%2FappCatalog%2FStoreAssets%3C%2FA%3E%20list%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E4)%20Upload%20your%20app%20in%20your%20appcatalog%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2F.sharepoint.com%2Fsites%2FappCatalog%2FAppCatalog%2FForms%2FAllItems.aspx%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsharepoint.com%2Fsites%2FappCatalog%2FAppCatalog%2FForms%2FAllItems.aspx%3C%2FA%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E5)%20Trust%20your%20app%20solution%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E6)%20Try%20again%20%26nbsp%3B%26nbsp%3B%3CSTRONG%3E%20%26nbsp%3B%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1541364%22%20slang%3D%22en-US%22%3ERe%3A%20Apps%20added%20to%20App%20Catalog%20not%20available%20for%20installation%20on%20other%20sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1541364%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20get%20the%20same%20issue%2C%20I%20manage%20to%20solve%20it%20using%20Powershell.%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20uploaded%20the%20SPFx%20package%20to%20my%20Apps%20Catalog%20site%3C%2FSPAN%3E%20using%20powershell%20and%20when%20I%20look%20for%20it%20%2C%20I%20find%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EConnect-PnPOnline%20-UseWebLogin%20%24Site%3CBR%20%2F%3E%23%20Add%20the%20app%20to%20the%20app%20catalog%20and%20publish%20it%3CBR%20%2F%3EAdd-PnPApp%20-Path%20%24appPath%20-Scope%20Site%20-Publish%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20this%20solution%20can%20help%20someone%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I started with SPFx development recently. I packaged a client side web-part as a file helloworld-webpart.sppkg following Microsoft's tutorial. Then I uploaded it to my Apps Catalog site. Though it was uploaded to the Apps Catalog successfully, but it's not available for installation on any of the sites. I tried the gear 'Add an App', tried searching for 'helloworld', but couldn't find it.

Any suggestion/help on this would be much appreciated.

3 Replies
Highlighted

Hello Khan,

 

Please try with below steps and deploy again your webaprt 

 

1)  Change deployment location  in write.mainfests.json file under config folder in your project 


2017-08-25_13-59-07.png

 

2) run these 2 commends . package will create and stored in temp/deploy  folder 

gulp –ship

gulp package-solution –ship

 

3) Create web part folder under Store Assets , Copy complete deploy folder and paste in your asserts folder in SharePoint.

https://sharepoint.com/sites/appCatalog/StoreAssets list

 

4) Upload your app in your appcatalog 

 https://sharepoint.com/sites/appCatalog/AppCatalog/Forms/AllItems.aspx

 

5) Trust your app solution

 

6) Try again      

 

Highlighted

1
down vote
accept
I figured it out. The problem was with my webpart code. I were getting this error before packaging the webpart:

-> Cannot find module 'helloWorldStrings'

I removed this error first, then again packaged the solution and uploaded it to the Apps Catalog site. This time it is working fine as expected.
Highlighted

Hi,

 

I get the same issue, I manage to solve it using Powershell.

I uploaded the SPFx package to my Apps Catalog site using powershell and when I look for it , I find it.

 

Connect-PnPOnline -UseWebLogin $Site
# Add the app to the app catalog and publish it
Add-PnPApp -Path $appPath -Scope Site -Publish

 

I hope this solution can help someone