rgthree / rgthree-comfy

Making ComfyUI more comfortable!
MIT License
1.03k stars 77 forks source link

Any Switch class/type error #342

Open Sipovec opened 4 days ago

Sipovec commented 4 days ago

Any Switch don't work

ComfyUI: 2730d72e87 Manager: V2.51.2 rgthree: 2024-09-15

In the preview, it's empty: preview

I get an error if I try to run an old workflow where a node has been added: Cannot execute because a node is missing the class_type property.

I get an error in the browser console when I try to add a node:

TypeError: node.type is undefined
    get workflow-component.js:673
    computeSize litegraph.es.js:2979
    addInput litegraph.es.js:2885
    addAnyInput any_switch.js:27
    RgthreeAnySwitch any_switch.js:12
    createNode litegraph.es.js:450
    addNodeOnGraph app.ts:2943
    addNode NodeSearchBoxPopover.vue:81
    callWithErrorHandling runtime-core.esm-bundler.js:195
    callWithAsyncErrorHandling runtime-core.esm-bundler.js:202
    emit runtime-core.esm-bundler.js:726
    3 GraphView-DN9xGvF3.js:2637
    callWithErrorHandling runtime-core.esm-bundler.js:195
    callWithAsyncErrorHandling runtime-core.esm-bundler.js:202
    emit runtime-core.esm-bundler.js:726
    onOptionSelect index.mjs:521
    onClick index.mjs:1291
    callWithErrorHandling runtime-core.esm-bundler.js:195
    callWithAsyncErrorHandling runtime-core.esm-bundler.js:202
    invoker runtime-dom.esm-bundler.js:693
    addEventListener runtime-dom.esm-bundler.js:644
    patchEvent runtime-dom.esm-bundler.js:662
    patchProp runtime-dom.esm-bundler.js:739
    mountElement runtime-core.esm-bundler.js:4641
    processElement runtime-core.esm-bundler.js:4588
    patch runtime-core.esm-bundler.js:4456
    mountChildren runtime-core.esm-bundler.js:4710
    processFragment runtime-core.esm-bundler.js:4926
    patch runtime-core.esm-bundler.js:4442
    patchKeyedChildren runtime-core.esm-bundler.js:5549
    patchChildren runtime-core.esm-bundler.js:5294
    processFragment runtime-core.esm-bundler.js:4970
    patch runtime-core.esm-bundler.js:4442
    patchKeyedChildren runtime-core.esm-bundler.js:5417
    patchChildren runtime-core.esm-bundler.js:5331
    patchElement runtime-core.esm-bundler.js:4760
    processElement runtime-core.esm-bundler.js:4599
    patch runtime-core.esm-bundler.js:4456
    patchKeyedChildren runtime-core.esm-bundler.js:5417
    patchChildren runtime-core.esm-bundler.js:5331
    processFragment runtime-core.esm-bundler.js:4970
    patch runtime-core.esm-bundler.js:4442
    patchBlockChildren runtime-core.esm-bundler.js:4855
    processFragment runtime-core.esm-bundler.js:4944
    patch runtime-core.esm-bundler.js:4442
    componentUpdateFn runtime-core.esm-bundler.js:5220
    run reactivity.esm-bundler.js:177
    update runtime-core.esm-bundler.js:5264
    updateComponent runtime-core.esm-bundler.js:5073
    processComponent runtime-core.esm-bundler.js:5007
    patch runtime-core.esm-bundler.js:4468
    patchKeyedChildren runtime-core.esm-bundler.js:5417
    patchChildren runtime-core.esm-bundler.js:5331
    patchElement runtime-core.esm-bundler.js:4760
    processElement runtime-core.esm-bundler.js:4599
    patch runtime-core.esm-bundler.js:4456
    componentUpdateFn runtime-core.esm-bundler.js:5220
    run reactivity.esm-bundler.js:177
    update runtime-core.esm-bundler.js:5264
    callWithErrorHandling runtime-core.esm-bundler.js:195
    flushJobs runtime-core.esm-bundler.js:409
    promise callback*queueFlush runtime-core.esm-bundler.js:319
    queueJob runtime-core.esm-bundler.js:313
    effect runtime-core.esm-bundler.js:5258
    resetScheduling reactivity.esm-bundler.js:262
    trigger reactivity.esm-bundler.js:402
    set reactivity.esm-bundler.js:524
    set runtime-core.esm-bundler.js:2272
    search index.mjs:831
    searchTimeout index.mjs:423
    setTimeout handler*onInput index.mjs:422
    3 index.mjs:1151
    callWithErrorHandling runtime-core.esm-bundler.js:195
    callWithAsyncErrorHandling runtime-core.esm-bundler.js:202
    invoker runtime-dom.esm-bundler.js:693
    addEventListener runtime-dom.esm-bundler.js:644
    patchEvent runtime-dom.esm-bundler.js:662
    patchProp runtime-dom.esm-bundler.js:739
    mountElement runtime-core.esm-bundler.js:4641
    processElement runtime-core.esm-bundler.js:4588
    patch runtime-core.esm-bundler.js:4456
    mountChildren runtime-core.esm-bundler.js:4710
    mountElement runtime-core.esm-bundler.js:4623
    processElement runtime-core.esm-bundler.js:4588
    patch runtime-core.esm-bundler.js:4456
    mountChildren runtime-core.esm-bundler.js:4710
    mountElement runtime-core.esm-bundler.js:4623
    processElement runtime-core.esm-bundler.js:4588
    patch runtime-core.esm-bundler.js:4456
    mountChildren runtime-core.esm-bundler.js:4710
    mountElement runtime-core.esm-bundler.js:4623
    processElement runtime-core.esm-bundler.js:4588
    patch runtime-core.esm-bundler.js:4456
    componentUpdateFn runtime-core.esm-bundler.js:5140
    run reactivity.esm-bundler.js:177
    update runtime-core.esm-bundler.js:5264
    setupRenderEffect runtime-core.esm-bundler.js:5274
    mountComponent runtime-core.esm-bundler.js:5042
    processComponent runtime-core.esm-bundler.js:4996
    patch runtime-core.esm-bundler.js:4468
    mountChildren runtime-core.esm-bundler.js:4710
    mountElement runtime-core.esm-bundler.js:4623
    processElement runtime-core.esm-bundler.js:4588
    patch runtime-core.esm-bundler.js:4456
    componentUpdateFn runtime-core.esm-bundler.js:5140