[PR #13] fix: add missing app import in example.js #13

Open
opened 2026-10-31 22:06:59 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Comfy-Org/cookiecutter-comfy-extension/pull/13
Author: @kaili-yang
Created: 5/13/2026
Status: 🔄 Open

Base: main ← Head: fix/bug2-example-js-missing-app-import


📝 Commits (1)

  • 9f04a28 fix: add missing app import in example.js

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 {{cookiecutter.project_slug}}/custom-nodes-template/web/js/example.js (+1 -0)

📄 Description

Problem

The JS template is broken out of the box.
Whenever someone spins up a new node using this template and hits ComfyUI, the browser console immediately throws a ReferenceError: app is not defined. The entire example.js file just dies right there. None of the extension logic—node registration, UI tweaks, event listeners—actually runs.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Comfy-Org/cookiecutter-comfy-extension/pull/13 **Author:** [@kaili-yang](https://github.com/kaili-yang) **Created:** 5/13/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/bug2-example-js-missing-app-import` --- ### 📝 Commits (1) - [`9f04a28`](https://github.com/Comfy-Org/cookiecutter-comfy-extension/commit/9f04a28973207c89af6f9591a7aac77d893f553d) fix: add missing app import in example.js ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `{{cookiecutter.project_slug}}/custom-nodes-template/web/js/example.js` (+1 -0) </details> ### 📄 Description ## Problem The JS template is broken out of the box. Whenever someone spins up a new node using this template and hits ComfyUI, the browser console immediately throws a `ReferenceError: app is not defined`. The entire `example.js` file just dies right there. None of the extension logic—node registration, UI tweaks, event listeners—actually runs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/cookiecutter-comfy-extension#13
No description provided.