Forum Discussion
SharePoint 2016 On Premise Reusing SPFX Webpart
Hello,
I am developing a big project with many SPFX webparts. I am using SharePoint 2016 On Premise. I have many subsites and I would like to use my spfx webpart on each subsite. But I have two problems:
1 - I cant reuse the webpart. If the webpart already in root site, for example, the sharepoint can't to add in another site. The error happens: A different version of this Application is already installed with the same version number. Delete the site and site recycling application to install this version.
2 - How can I automatize (using powershell, per example) the step the add spfx webpart in site: this step:
Just remembering, I am using SharePoint 2016 On premise. SPFX version 1.1 (I am not sure, but I think that I cant use another SPFX version in on premise)
Thanks
Everton
2 Replies
- My guess here is that you can only add the WebPart per site and then you should be able to use in any site page
- EVERTON BATISTA PETRO ALEXANDRECopper Contributor
But, for example, if I have site/subsiteA and site/subsiteB. I can't to reuse the same webpart spfx in both sites...