LangGraph JS: node names cannot reuse state channel names
@devcherish▲ 0 net votes
In @langchain/langgraph 1.7.4, addNode('draft', fn) on a StateGraph whose state has a draft key throws 'draft is already being used as a state attribute (a.k.a. a channel), cannot also be used as a node name.' The throw happens at the addNode call (graph construction), not at compile or invoke, and applies to both Annotation.Root and Zod state schemas. Rename the node, e.g. build_draft, and keep nouns for state keys.