TypeError: onlyChannels[chan].isAvailable is not a function #283

Closed
opened 2026-02-15 18:15:29 -05:00 by yindo · 4 comments
Owner

Originally created by @wlean on GitHub (Jun 11, 2025).

error: ┏ Background run failed:
TypeError: onlyChannels[chan].isAvailable is not a function
at _applyWrites (D:\Project\ve\node_modules.pnpm@langchain+langgraph@0.3.1__ee107da174995a1c7285db6cd939de52\node_modules@langchain\langgraph\src\pregel\algo.ts:374:25)
at PregelLoop.tick (D:\Project\ve\node_modules.pnpm@langchain+langgraph@0.3.1__ee107da174995a1c7285db6cd939de52\node_modules@langchain\langgraph\src\pregel\loop.ts:692:8)
at CompiledStateGraph._runLoop (D:\Project\ve\node_modules.pnpm@langchain+langgraph@0.3.1__ee107da174995a1c7285db6cd939de52\node_modules@langchain\langgraph\src\pregel\index.ts:2179:21)
at async createAndRunLoop (D:\Project\ve\node_modules.pnpm@langchain+langgraph@0.3.1__ee107da174995a1c7285db6cd939de52\node_modules@langchain\langgraph\src\pregel\index.ts:2053:8)

Originally created by @wlean on GitHub (Jun 11, 2025). error: ┏ Background run failed: TypeError: onlyChannels[chan].isAvailable is not a function at _applyWrites (D:\Project\ve\node_modules\.pnpm\@langchain+langgraph@0.3.1__ee107da174995a1c7285db6cd939de52\node_modules\@langchain\langgraph\src\pregel\algo.ts:374:25) at PregelLoop.tick (D:\Project\ve\node_modules\.pnpm\@langchain+langgraph@0.3.1__ee107da174995a1c7285db6cd939de52\node_modules\@langchain\langgraph\src\pregel\loop.ts:692:8) at CompiledStateGraph._runLoop (D:\Project\ve\node_modules\.pnpm\@langchain+langgraph@0.3.1__ee107da174995a1c7285db6cd939de52\node_modules\@langchain\langgraph\src\pregel\index.ts:2179:21) at async createAndRunLoop (D:\Project\ve\node_modules\.pnpm\@langchain+langgraph@0.3.1__ee107da174995a1c7285db6cd939de52\node_modules\@langchain\langgraph\src\pregel\index.ts:2053:8)
yindo closed this issue 2026-02-15 18:15:29 -05:00
Author
Owner

@wlean commented on GitHub (Jun 11, 2025):

Help me, please!
run agent failed……

use:

  • @langchain/langgraph-cli dev

config:

// langgraph.js
{
"node_version": "20",
"dockerfile_lines": [],
"dependencies": [
"."
],
"graphs": {
"sample_agent": "./agent/agent.ts:graph"
},
"env": ".env"
}

@wlean commented on GitHub (Jun 11, 2025): Help me, please! run agent failed…… use: - @langchain/langgraph-cli dev config: // langgraph.js { "node_version": "20", "dockerfile_lines": [], "dependencies": [ "." ], "graphs": { "sample_agent": "./agent/agent.ts:graph" }, "env": ".env" }
Author
Owner

@dqbd commented on GitHub (Jun 17, 2025):

Hello @wlean! Is it possible that you have multiple @langchain/langgraph versions installed? Could you check your PNPM lockfile if @langchain/langgraph is not installed multiple times?

@dqbd commented on GitHub (Jun 17, 2025): Hello @wlean! Is it possible that you have multiple `@langchain/langgraph` versions installed? Could you check your PNPM lockfile if `@langchain/langgraph` is not installed multiple times?
Author
Owner

@dqbd commented on GitHub (Jun 26, 2025):

Closing for now, feel free to reopen if the issue still persists.

@dqbd commented on GitHub (Jun 26, 2025): Closing for now, feel free to reopen if the issue still persists.
Author
Owner

@EpicWerf commented on GitHub (Jul 2, 2025):

@dqbd we recently got this exact same error and aren't sure what's causing it.

Best guess is that there's some sort of minor version mismatch between CopilotKit and LangChain causing this issue, but we've tried using various resolutions, pinning versions, downgrading, upgrading, etc. and haven't been able to find a working solution.

@wlean did you guys end up finding a fix?

Here are our current versions:

		"@copilotkit/react-core": "^1.8.14",
		"@copilotkit/react-ui": "^1.8.14",
		"@copilotkit/runtime": "^1.8.14",
		"@copilotkit/sdk-js": "^1.8.14",

		"@langchain/core": "^0.3.61",
		"@langchain/google-genai": "^0.2.14",
		"@langchain/google-vertexai": "^0.2.14",
		"@langchain/google-vertexai-web": "^0.2.14",
		"@langchain/langgraph": "^0.3.6",
@EpicWerf commented on GitHub (Jul 2, 2025): @dqbd we recently got this exact same error and aren't sure what's causing it. Best guess is that there's some sort of minor version mismatch between CopilotKit and LangChain causing this issue, but we've tried using various resolutions, pinning versions, downgrading, upgrading, etc. and haven't been able to find a working solution. @wlean did you guys end up finding a fix? Here are our current versions: ``` "@copilotkit/react-core": "^1.8.14", "@copilotkit/react-ui": "^1.8.14", "@copilotkit/runtime": "^1.8.14", "@copilotkit/sdk-js": "^1.8.14", "@langchain/core": "^0.3.61", "@langchain/google-genai": "^0.2.14", "@langchain/google-vertexai": "^0.2.14", "@langchain/google-vertexai-web": "^0.2.14", "@langchain/langgraph": "^0.3.6", ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#283