Can't attach gen UI components to graphs with hyphens (-) in the graph ID #279

Closed
opened 2026-02-15 18:15:26 -05:00 by yindo · 0 comments
Owner

Originally created by @bracesproul on GitHub (Jun 7, 2025).

If you try to add the ui field to your langgraph.json, and attach it to a graph with a hyphen in the graph ID, it will error:

info:    ▪ Registering UI from /Users/bracesproul/code/lang-chain-ai/projects/open-swe
✘ [ERROR] Expected "." but found "-"

    (global name):1:11:
      1 │ __LGUI_open-swe
        │            ^
        ╵            .

error:   ▪ Error: Context failed with 1 error:
(global name):1:11: ERROR: Expected "." but found "-"
    at failureErrorWithLog (/Users/bracesproul/code/lang-chain-ai/projects/open-swe/node_modules/esbuild/lib/main.js:1463:15)
    at /Users/bracesproul/code/lang-chain-ai/projects/open-swe/node_modules/esbuild/lib/main.js:955:25
    at responseCallbacks.<computed> (/Users/bracesproul/code/lang-chain-ai/projects/open-swe/node_modules/esbuild/lib/main.js:601:9)
    at handleIncomingPacket (/Users/bracesproul/code/lang-chain-ai/projects/open-swe/node_modules/esbuild/lib/main.js:656:12)
    at Socket.readFromStdout (/Users/bracesproul/code/lang-chain-ai/projects/open-swe/node_modules/esbuild/lib/main.js:579:7)
    at Socket.emit (node:events:507:28)
    at addChunk (node:internal/streams/readable:559:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
    at Readable.push (node:internal/streams/readable:390:5)
    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)
Originally created by @bracesproul on GitHub (Jun 7, 2025). If you try to add the `ui` field to your `langgraph.json`, and attach it to a graph with a hyphen in the graph ID, it will error: ```bash info: ▪ Registering UI from /Users/bracesproul/code/lang-chain-ai/projects/open-swe ✘ [ERROR] Expected "." but found "-" (global name):1:11: 1 │ __LGUI_open-swe │ ^ ╵ . error: ▪ Error: Context failed with 1 error: (global name):1:11: ERROR: Expected "." but found "-" at failureErrorWithLog (/Users/bracesproul/code/lang-chain-ai/projects/open-swe/node_modules/esbuild/lib/main.js:1463:15) at /Users/bracesproul/code/lang-chain-ai/projects/open-swe/node_modules/esbuild/lib/main.js:955:25 at responseCallbacks.<computed> (/Users/bracesproul/code/lang-chain-ai/projects/open-swe/node_modules/esbuild/lib/main.js:601:9) at handleIncomingPacket (/Users/bracesproul/code/lang-chain-ai/projects/open-swe/node_modules/esbuild/lib/main.js:656:12) at Socket.readFromStdout (/Users/bracesproul/code/lang-chain-ai/projects/open-swe/node_modules/esbuild/lib/main.js:579:7) at Socket.emit (node:events:507:28) at addChunk (node:internal/streams/readable:559:12) at readableAddChunkPushByteMode (node:internal/streams/readable:510:3) at Readable.push (node:internal/streams/readable:390:5) at Pipe.onStreamRead (node:internal/stream_base_commons:189:23) ```
yindo closed this issue 2026-02-15 18:15:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#279