Hosted workbench stopped working

%3CLINGO-SUB%20id%3D%22lingo-sub-2808794%22%20slang%3D%22en-US%22%3EHosted%20workbench%20stopped%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2808794%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3EEDIT%3A%20I%20figured%20out%20the%20issue.%20Apparently%2C%20if%20the%20site%20already%20has%20the%20web%20part%20uploaded%20and%20added%20to%20the%20home%20page%20of%20the%20site%20the%20workbench%20keeps%20using%20that%20version%20and%20not%20the%20version%20running%20in%20my%20Visual%20Studio%20Code.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20several%20weeks%20I%20have%20been%20developing%20in%20Visual%20Studio%20Code%20and%20running%20my%20project%20by%20using%20the%20%22%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fs-KaiNet%2Fspfx-fast-serve%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Enpm%20fast%20serve%3C%2FA%3E%22%20command%20while%20using%20the%20hosted%20workbench%20that%20looks%20like%20the%20following%20URL%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Ehttps%3A%2F%2Fmycompany.sharepoint.com%2Fsites%2Fmysite%2F_layouts%2F15%2Fworkbench.aspx%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebut%20the%20other%20day%20it%20stopped%20working.%20Now%20it's%20running%20an%20old%20version%20of%20the%20code%20and%20none%20of%20my%20changes%20are%20being%20reflected%20on%20it.%20It%20used%20to%20refresh%20the%20page%20any%20time%20I%20saved%20my%20changes%20in%20Visual%20Studio%20but%20it%20no%20longer%20does%20that.%20Is%20there%20some%20sort%20of%20connection%20to%20my%20local%20project%20that%20is%20broken%3F%20I've%20tried%20clearing%20the%20cache%20(ctrl%2Bf5)%2C%20removing%20and%20re-adding%20the%20web%20part%2C%20and%20deleting%20all%20my%20browser%20history%20(cache%2C%20temp%20files%20etc.)%20but%20nothing%20works.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOne%20odd%20thing%20that%20I%20noticed%20is%20that%20when%20I%20use%20the%20normal%20site%20URL%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3Ehttps%3A%2F%2Fmycompany.sharepoint.com%2Fsites%2Fmysite%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eit%20shows%20my%20changes%20when%20I%20have%20my%20project%20running%20in%20Visual%20Studio%20like%20the%20workbench%20did.%20Is%20that%20supposed%20to%20happen%3F%20When%20I'm%20not%20running%20my%20project%20in%20Visual%20Studio%20the%20URL%20shows%20the%20web%20part%20data%20that%20was%20uploaded%20to%20the%20app%20catalog.%20I've%20been%20able%20to%20use%20the%20normal%20URL%20as%20a%20workaround%2Freplacement%20for%20the%20workbench%20for%20now%20but%20I%20would%20like%20to%20get%20the%20workbench%20to%20work%20again.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyone%20know%20how%20to%20get%20the%20workbench%20to%20work%20again%3F%20Thanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

EDIT: I figured out the issue. Apparently, if the site already has the web part uploaded and added to the home page of the site the workbench keeps using that version and not the version running in my Visual Studio Code.

 

For several weeks I have been developing in Visual Studio Code and running my project by using the "npm fast serve" command while using the hosted workbench that looks like the following URL

 

 

 

https://mycompany.sharepoint.com/sites/mysite/_layouts/15/workbench.aspx

 

 

 

but the other day it stopped working. Now it's running an old version of the code and none of my changes are being reflected on it. It used to refresh the page any time I saved my changes in Visual Studio but it no longer does that. Is there some sort of connection to my local project that is broken? I've tried clearing the cache (ctrl+f5), removing and re-adding the web part, and deleting all my browser history (cache, temp files etc.) but nothing works.  

 

One odd thing that I noticed is that when I use the normal site URL

 

 

 

https://mycompany.sharepoint.com/sites/mysite

 

 

 

 

it shows my changes when I have my project running in Visual Studio like the workbench did. Is that supposed to happen? When I'm not running my project in Visual Studio the URL shows the web part data that was uploaded to the app catalog. I've been able to use the normal URL as a workaround/replacement for the workbench for now but I would like to get the workbench to work again.

 

Anyone know how to get the workbench to work again? Thanks.

0 Replies