Using SPFX Webpart in different subsites

%3CLINGO-SUB%20id%3D%22lingo-sub-282500%22%20slang%3D%22en-US%22%3EUsing%20SPFX%20Webpart%20in%20different%20subsites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-282500%22%20slang%3D%22en-US%22%3E%3CP%3EHello!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20use%20a%20SharePoint%20Framework%20wp%20in%20different%20subsites.%20In%20first%20subsite%20is%20working%2C%20but%20when%20I%20try%20add%20in%20a%20second%20subsite%20(_layouts%2F15%2Faddanapp.aspx)%20the%20error%20happens%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%22A%20different%20version%20of%20this%20Application%20is%20already%20installed%20with%20the%20same%20version%20number.%20Delete%20the%20site%20and%20site%20trash%20application%20to%20install%20this%20version%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMaybe%20I%20need%20to%20deploy%20the%20spfx%20change%20the%20scope%2C%20like%20%22site%20collection%22.%20Can%20I%20change%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3EEverton%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289065%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20SPFX%20Webpart%20in%20different%20subsites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289065%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20error%20might%20be%20because%20originally%20you%20added%20old%20version%20of%20the%20SPFx%20web%20part%20on%20second%20sub-site%20which%20you%20might%20have%20deleted%20and%20is%20currently%20in%20recycle%20bin.%20You%20delete%20the%20older%20version%20of%20SPFx%20web%20part%20from%20recycle%20bin%20and%20you%20should%20be%20able%20to%20add%20new%20version%20to%20second%20sub-site.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELet%20me%20know%20if%20that%20works.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hello!

 

I am trying to use a SharePoint Framework wp in different subsites. In first subsite is working, but when I try add in a second subsite (_layouts/15/addanapp.aspx) the error happens:

 

"A different version of this Application is already installed with the same version number. Delete the site and site trash application to install this version"

 

Maybe I need to deploy the spfx change the scope, like "site collection". Can I change this?

 

Thanks

Everton

1 Reply

This error might be because originally you added old version of the SPFx web part on second sub-site which you might have deleted and is currently in recycle bin. You delete the older version of SPFx web part from recycle bin and you should be able to add new version to second sub-site.

 

Let me know if that works.