SharePoint Framework – Update Existing Webpart and Troubleshooting errors

I did not find documented way to updated existing app, this is the ways I have found, please let me know if there are other faster ways

To further update the webpart code in SPFX

  • gulp –ship

  • gulp package-solution –ship

  • gulp deploy-azure-storage

  • Drag and drop the helloworld-webpart.sppkg file to the app catalog

If you need to change the webpart json, for example in case of wrong URL Storage in azure

  • Open package-solution.json, change the version number
  • gulp –ship

  • gulp package-solution –ship

  • gulp deploy-azure-storage

  • Remove the app
  • Drag and drop the solution file to app catalog
  • Add a page or edit the existing one where is your webpart
  • Re add the webpart

Troubleshooting

Error Resolution Explanation
No manifests were found in ‘temp\deploy\*.json’. Ensure a build has completed successfully and that paths.manifestsMatch is correct gulp –ship Deploy folder is missing in temp
There was a network problem. This may be a problem with a HTTPS certificate. Make sure you have the right certificate. Ensure your url in write-manifests.json is correct

Then save

gulp clean

gulp –ship

Gulp package-solution ship

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: