I am currently trying to find out how to fix this behavior. I got some SPFx Webpart samples and when I update them and re deploy them to the Tenant's app catalog, the sites that use it automatically use the newest version without the need to go in the site contents and update it manually with the "Get It" button.
The webparts I have created do not have this behavior, I need to go update them on all sites that use it and I can see this becoming tedious in the future.
I have tried to compare the code from my
package-solution.json with the code from sample webparts but everything seems really similar.
Here is the steps I do when I want to publish a new package.
- Increment the version number in
- Run the following commands
gulp bundle --ship
gulp package-solution --ship
- Take the new .sppkg file and upload it to the App Catalog of the tenant
- Go to each site and update the app manually (This is the step I would like to avoid)
I am still pretty new to SPFx development so any help is appreciated. I have tried to look online but couldn't find what I am looking for.