ComfyUI-Custom-Scripts
ComfyUI-Custom-Scripts copied to clipboard
Cannot read properties of undefined (reading 'beforeQueued')
Yesterday my ComfyUI desktop installation prompted me with an automatic update, so I did it. It was around that time I noticed that after running my custom Wan workflow it would freeze the UI when I tried to zoom out the camera, and also if I tried queueing up the workflow a second time it would error Cannot read properties of undefined (reading 'beforeQueued'), forcing me to Ctrl+R to refresh the UI.
The issue turned out to be a Show Text 🐍 node. I figured it out because that's the only node that would've come into view after zooming out. I deleted and recreated the node and it fixed the issue.
Not sure if this was an issue with the ComfyUI update, or something that you would be able to fix, but figured I'd submit a bug report for it.
Thank you !!
Got the same problem when updating ComfyUI. Solved it by uninstalling and reinstalling ComfyUI-Custom-Scripts then updating all nodes from workflow.
I got the same error message one time some time after refreshing, updating nodes, etc that directed me to this bug report.
itos's solution worked, but this wasn't simply the error message that got fixed, it fixed another issue I was having.
I think some ComfyUI update did something, an issue I was having where the ComfyUI workflow/GUI would glitch, after hitting run/generate, the whole worksheet would have the nodes stay in place when trying to drag/move around the worksheet, but the text in the Custom-Scripts node, the text in Hunyuan Video CFG node, some Note nodes, and even the generated video/preview image would move while you dragged.
So I was going through the effected nodes, trying updates/downgrades until I got this error and bug report.
Not sure if this glitch and breaking had something to do with ComfyUI updating the frontend or the new(?) workflow-templates(which now is giving a lot of "Found example workflow folder 'workflows' for custom node 'CUSTOM NODE NAME', consider renaming it to 'example_workflows'" messages).
I don't think I tried updating or generating anything with ComfyUI for about a week, and I think tried updating things today before running into this issue.
Here is my current Comfy version: [ComfyUI 0.3.30] [ComfyUI_frontend v1.18.5] [ComfyUI-Manager V3.31.13]
昨天,我的 ComfyUI 桌面安装提示我自动更新,于是我照做了。大约就在那时,我注意到运行自定义的 Wan 工作流程后,当我尝试缩小摄像头时,UI 会卡住,而且如果我再次尝试排队工作流程,它会出错
Cannot read properties of undefined (reading 'beforeQueued'),迫使我按 Ctrl+R 刷新 UI。问题原来出在一个
Show Text 🐍节点上。我找到了原因,因为缩小后唯一能看到的节点就是它。我删除并重新创建了这个节点,问题就解决了。不确定这是否是 ComfyUI 更新的问题,或者是您可以修复的问题,但我想我会为此提交一份错误报告。
thank you so mach It has solved my problem
Solution: It is enough to update Custom-Scripts nodes (or reinstall).
In addition, update ComfyUI.
非常感谢,通过这个解决了问题