ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

"widget is undefined"

Open RikyRichard opened this issue 7 months ago • 1 comments

I am having an issue where upon loading comfyui, the first generation I do runs as it should, however, when I try to run a second generation, I get an error in the UI that just says "widget is undefined". There are no errors present in the console window and when I try to search for the problem online, I find no relevant answers. If I refresh the browser, I can run one more generation, but again on the second run, the error comes back. However, if I run a batch generation of 2 or more, it will run the whole batch of gens. When I try the second batch, it pops the error. This has only started occurring after updating comfyui and I am at a loss as to what might be causing it. I am running ComfyUI Portable v0.3.30 if that makes any difference.

A console message is not attached as there is no relevant info regarding the problem.

Any help is appreciated, thanks.

RikyRichard avatar Apr 27 '25 05:04 RikyRichard

Disable all custom nodes and try again.

ltdrdata avatar Apr 27 '25 06:04 ltdrdata

I had the same problem as you, workflow runs ok once, then get "Error: widget is undefined". And I finally fixed it.

First thing I did was delete all custom node folders and redownload them again. Custom nodes like "cg-use-everywhere" and "rgthree-comfy" may need to be redownloaded for v0.3.30.

I'm running Firefox browser, so to look for clues, I open the Debugger Console at Tools -> Browser Tools -> Web Developer Tools. This has much more information that what ComfyUI is telling you. If I see any strange references to the custom nodes I'm using, I delete their custom folder and download them again.

samsonsite1 avatar Apr 28 '25 02:04 samsonsite1

I've had this issue since the last comfyui update. It seems to be connected to the litegraph node, either coming from the installed custom node or the one primarly integrated now in comfyui. I still have the issue, even after updating all these custom nodes, or simply removing the concerned ones ( mostly the cg-use-everywhere ).

From now on, I can only launch my Flux workflow once before the "widget is undefined" appears and then I can no longer queue any other extra generations.

Does anyone else also have this issue ?

EDIT : I managed to fix the issue by updating Pythongosss Custom Script and Comfyui Was suit set of nodes !

Kozatiju avatar May 07 '25 10:05 Kozatiju