TypeError: c.toUpperCase is not a function This may be due to the following script: /extensions/ComfyUI-KJNodes/js/ideogram4_prompt_builder.js
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 158
Description
### Custom Node Testing
- [ ] 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
I am not able to load my workflows which uses Idegoram Prompt Builder KJ node in comfy cloud.
### Actual Behavior
The workflow are unable to open in the comfy cloud frontend but are working through api call.
### Steps to Reproduce
try to load Ideogram workflow in comfy cloud which had Ideogram prompt builder KJ node.
### Debug Logs
```powershell
# ComfyUI Error Report
## Error Details
- **Node ID:** N/A
- **Node Type:** N/A
- **Exception Type:** Loading aborted due to error reloading workflow data
- **Exception Message:** TypeError: c.toUpperCase is not a function
## Stack Trace
TypeError: c.toUpperCase is not a function
at https://cloud.comfy.org/extensions/ComfyUI-KJNodes/js/ideogram4_prompt_builder.js:1479:85
at Array.map ()
at cleanPalette (https://cloud.comfy.org/extensions/ComfyUI-KJNodes/js/ideogram4_prompt_builder.js:1479:72)
at https://cloud.comfy.org/extensions/ComfyUI-KJNodes/js/ideogram4_prompt_builder.js:1506:23
at Array.map ()
at buildCaption (https://cloud.comfy.org/extensions/ComfyUI-KJNodes/js/ideogram4_prompt_builder.js:1500:38)
at updateTokens (https://cloud.comfy.org/extensions/ComfyUI-KJNodes/js/ideogram4_prompt_builder.js:1515:29)
at ComfyNode. (https://cloud.comfy.org/extensions/ComfyUI-KJNodes/js/ideogram4_prompt_builder.js:2035:9)
at object. [as onConfigure] (https://cloud.comfy.org/extensions/ComfyUI-KJNodes/js/utility.js:24:16)
at ComfyNode.configure (https://cloud.comfy.org/assets/settingStore-DGpk3zFd.js:2:169420)
at window.LGraphNode.configure (https://cloud.comfy.org/extensions/radiance/radiance_style.js:57:38)
at ComfyNode.configure (https://cloud.comfy.org/assets/settingStore-DGpk3zFd.js:152:11696)
at LGraph.configure (https://cloud.comfy.org/assets/settingStore-DGpk3zFd.js:2:399267)
at Mc.configure (https://cloud.comfy.org/assets/settingStore-DGpk3zFd.js:222:8978)
at ComfyApp.loadGraphData (https://cloud.comfy.org/assets/settingStore-DGpk3zFd.js:222:15861)
at async Object.openWorkflow (https://cloud.comfy.org/assets/settingStore-DGpk3zFd.js:206:100751)
at async Object.handleClick (https://cloud.comfy.org/assets/settingStore-DGpk3zFd.js:206:76206)
at async onNodeContentClick (https://cloud.comfy.org/assets/settingStore-DGpk3zFd.js:197:139840)
## System Information
- **ComfyUI Version:** v0.30.0
- **Arguments:**
- **OS:**
- **Python Version:**
- **Embedded Python:** false
- **PyTorch Version:**
## Devices
## Logs
[
{
"level": "info",
"message": "System is running normally"
}
]
## Attached Workflow
Please make sure that workflow does not contain any sensitive information such as API keys or passwords.
Workflow too large. Please manually upload the workflow from local file system.
## Additional Context
(Please add any additional context or steps to reproduce the error here)
```
### Other
_No response_
Contributor guide
Research direction
Start by reading extensions/ComfyUI-KJNodes/js/ideogram4_prompt_builder.js around cleanPalette at line 1479 and its callers buildCaption and updateTokens. Reproduce by opening an Ideogram workflow containing the Ideogram Prompt Builder KJ node in Comfy Cloud. Done means the workflow opens without the c.toUpperCase TypeError while the existing API workflow behavior remains functional.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100