Files
copilotkit__copilotkit/examples/integrations/langgraph-js/agent/package.json
Jordan Ritter a4f1d14d3a fix(examples): pin langgraph-js agent CLI as local devDependency
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).
2026-06-03 11:54:21 -07:00

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"
}
}