Skip to content

Cannot read properties of undefined (reading 'beforeQueued') #467

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Zyin055 opened this issue Apr 19, 2025 · 5 comments
Open

Cannot read properties of undefined (reading 'beforeQueued') #467

Zyin055 opened this issue Apr 19, 2025 · 5 comments

Comments

@Zyin055
Copy link

Zyin055 commented Apr 19, 2025

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.

@NonoRip
Copy link

NonoRip commented Apr 23, 2025

Thank you !!

@itos
Copy link

itos commented Apr 26, 2025

Got the same problem when updating ComfyUI. Solved it by uninstalling and reinstalling ComfyUI-Custom-Scripts then updating all nodes from workflow.

@Mystos007
Copy link

Mystos007 commented May 2, 2025

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]

@1jianmo-hub
Copy link

昨天,我的 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

@Shyryp
Copy link

Shyryp commented May 14, 2025

Solution:
It is enough to update Custom-Scripts nodes (or reinstall).

In addition, update ComfyUI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants