sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Web parts all the sudden stopped working today in hosted workbench and debug toolbar

Open kbeverforden opened this issue 5 months ago • 2 comments

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

Windows

What browser(s) / client(s) have you tested

  • [x] 💥 Microsoft Edge Version 149.0.4022.52 (Official build) (64-bit)
  • [x] 💥 Google Chrome

Additional environment details

SPFx v1.23.0 Node v22.15.0

Describe the bug / error

I ran the project in VS Code today and see this error for all web parts. I tried the debug toolbar and workbench but both have the same issue. I deleted the node modules folder and re-installed everything but it didn't help.

The web parts are working fine on a SharePoint site that they are hosted on and I've been working on these web parts in VS Code without issue last week. Some of the web parts haven't changed in years. Anyone else having the same issue? Let me know if there's anything else I can share. There doesn't seem to be any errors or anything useful to share.

This does not happen on a new blank v1.23.0 project.

Workbench Image

Debug toolbar Image

Steps to reproduce

Add web part to the workbench or go directly to a SharePoint page that has the web part with this added to the URL ?loadSPFX=true&debugManifestsFile=https%3A%2F%2Flocalhost%3A4321%2Ftemp%2Fbuild%2Fmanifests.js

Expected behavior

Web part should be visible on the page.

kbeverforden avatar Jun 08 '26 14:06 kbeverforden

Is it trying to use the wrong manifest file or does it look for it in both places? My URL is pointing to /temp/build/ but the console doesn't have build in the URL. This appears before trying to add a web part to the page

Image

I am able to access the manifest file

Image

kbeverforden avatar Jun 08 '26 16:06 kbeverforden

Everything is working again. I don't know if it was a coincidence, but, as a test, I ran the yo command to add a blank web part to my project. As soon as I did that, the web parts started working. My theory is that a Microsoft package got updated to 1.23.1 even though everything is at 1.23.0. By adding a web part it may have synced everything to 1.23.0 again even though I had deleted node modules several times and re-installed everything. There were no git differences in the files compared to when everything was working last week so even my theory doesn't really make any sense.

kbeverforden avatar Jun 08 '26 20:06 kbeverforden