Add SharePoint Framework App on root and subsites

Brass Contributor

Hi folks,

Am I missing something or it is not possible yet to add a SPFx app to the root site and subsite at the same time and vice versa?

 

I deployed my app on the root site collection and created a subsite. When I navigate to the site contents to add my app the following error is showing up:

 

"A different version of this App is already installed with the same version number.  You need to delete the app from the site and the site recycle bin to install this version."

 

The same error occurs when I first add the app on a subsite and then try to do add it to the actual root site.

 

This is a kind of strange behavior I don't really understand :\

2 Replies

I'm not sure what causes that either, but a workaround is to update the version in the package-solution.json and repackage/deploy.

 

I ran into a similar issue as you, but I was provisioning the subsite based on another site with the app already deployed, so I'm sure I screwed things up there.

Ah OK thanks for that hint. I will give it a try. Currently when going on Integration testing I don't update the version number. So I just deploy the updated bundle and manifest package.