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).
27 lines
588 B
JSON
27 lines
588 B
JSON
{
|
|
"name": "agent",
|
|
"version": "0.0.1",
|
|
"description": "",
|
|
"keywords": [],
|
|
"license": "ISC",
|
|
"author": "",
|
|
"type": "module",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"dev": "langgraphjs dev --port 8123 --no-browser"
|
|
},
|
|
"dependencies": {
|
|
"@copilotkit/sdk-js": "1.56.5",
|
|
"@langchain/core": "1.1.44",
|
|
"@langchain/langgraph": "1.3.0",
|
|
"@langchain/openai": "1.4.4",
|
|
"langchain": "1.3.4"
|
|
},
|
|
"devDependencies": {
|
|
"@langchain/langgraph-cli": "1.2.4",
|
|
"@types/html-to-text": "^9.0.4",
|
|
"@types/node": "^22.9.0",
|
|
"typescript": "^5.6.3"
|
|
}
|
|
}
|