mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
a4f1d14d3a
The langgraph-js agent `dev` script ran `npx @langchain/langgraph-cli@1.2.1`, which resolves its own isolated dependency tree. That tree pulled a 1.2.x `@langchain/langgraph` to satisfy the `@langchain/langgraph-api` peer dependency, but the API hard-imports `STREAM_EVENTS_V3_MODES` from `@langchain/langgraph/web` — a symbol only present in langgraph 1.3.0+ — crashing the agent at startup with a SyntaxError. Install `@langchain/langgraph-cli@1.2.4` as a devDependency and invoke the local `langgraphjs` binary so the `@langchain/langgraph` peer resolves from the agent's own pinned 1.3.0, which exports the symbol. Verified the agent boots cleanly (graph registered, API on :8123, no SyntaxError).