TypeError: data.inputs?.map is not a function when importing workflow in ComfyUI v0.3.42
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 155
Description
### Custom Node Testing
- [x] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)
### Expected Behavior
Expected the workflow to import without error and render a functional node graph in the canvas.
### Actual Behavior
Instead, I get:
TypeError: data.inputs?.map is not a function
and the UI refuses to load any nodes from the workflow JSON. This occurs on every import, even with new JSONs using the official `"version": "1.0"` format and object-based `inputs`.
### Steps to Reproduce
1. Launch ComfyUI v0.3.42 with `--cpu` flag on Linux (Crostini)
2. Drag in the attached `dreamloop_template_fixed.json` workflow file
3. Observe the following error:
`TypeError: data.inputs?.map is not a function`
### Debug Logs
```powershell
Checkpoint files will always be loaded safely.
Total VRAM 2679 MB, total RAM 2679 MB
pytorch version: 2.7.1+cu126
Set vram state to: DISABLED
Device: cpu
Using sub quadratic optimization for attention, if you have memory or speed issues try using: --use-split-cross-attention
Python version: 3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0]
ComfyUI version: 0.3.42
ComfyUI frontend version: 1.23.4
[Prompt Server] web root: /home/voidrift/dreamloop-terminal/venv/lib/python3.11/site-packages/comfyui_frontend_package/static
Import times for custom nodes:
0.0 seconds: /home/voidrift/ComfyUI/custom_nodes/websocket_image_save.py
0.1 seconds: /home/voidrift/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved
Context impl SQLiteImpl.
Will assume non-transactional DDL.
No target revision found.
Starting server
To see the GUI go to: http://127.0.0.1:8188
```
### Other
[dreamloop_template.json](https://github.com/user-attachments/files/20951477/dreamloop_template.json)
Contributor guide
Assessment
This issue has not been assessed yet.