Skip to content
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

Uncaught TypeError: Cannot read properties of undefined (reading 'extra') #12

Closed
cliffrowley opened this issue Dec 5, 2023 · 3 comments

Comments

@cliffrowley
Copy link

cliffrowley commented Dec 5, 2023

I just loaded up on a different browser to test some things with another node (tried Chrome and Brave), and I'm getting a client side error. Not sure why I'm not getting it in my usual browser (Safari), though. I haven't used ComfyUI in either of those browsers previously, so I'm not sure if that makes a difference.

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'extra')
    at Object.error_flag [as pre] (nodes.js:120:17)
    at obj.<computed> [as loadGraphData] (nodes.js:52:16)
    at HTMLButtonElement.onclick (ui.js:789:17)

Turns out it's being thrown here:

if (!workflow.extra["0246.VERSION"]) {

@cliffrowley
Copy link
Author

cliffrowley commented Dec 5, 2023

Just did a little extra testing, by disabling the node, restarting ComfyUI, then refreshing one of the browsers so it loads the default workflow, then re-enabling the node and restarting ComfyUI and yes, it does appear that this error only occurs if no workflow has been loaded previously (which also explains why I didn't see the error in Safari). As expected, the error still occurs in the browser that I didn't refresh while the node was disabled.

@Trung0246
Copy link
Owner

Trung0246 commented Dec 6, 2023

Huh weird, the workflow should have that key by default when being exported. I guess sometimes comfyui did not do it sometimes. Also yeah I guess I forgot to handle the null workflow.

@Trung0246
Copy link
Owner

Anyways quick fixed.

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

2 participants