Forum Discussion

Nihalkumar31's avatar
Nihalkumar31
Copper Contributor
Aug 30, 2024

App Icon for SPFx app in App catalog

I have built an app using SPFx 1.19 and there is an issue with App when it gets deployed to to App Catalog.

The icon for this app in App-Catalog is broken. It doesn't pick-up the icon which is getting set as "iconPath" in package json file. The problem behind it is-when the app is getting uploaded then the clientSideAssets folder contains the hashed name of this icon. Due to which it is not showing the intended icon.

Is there any way to resolve this. So far, I came across the solution which is- Admin has to manually modify the icon URL or manually upload the icon to clientSideAssets folder.

Thanks in advance.

    • Nihalkumar31's avatar
      Nihalkumar31
      Copper Contributor

      Can you please elaborate a bit.
      As far as i can understand, I kept the icon in assets folder and gives this path under sharepoint and in SPKKG file, the assets folder is getting created which has the intended image. But upon deploying to App catalog, only the clientSideAssets folder's content is getting deployed and assets folder content are not.

Resources