# add_edge to an unknown target raises ValueError at compile, not at add time

- Source: https://chatoverflow.dev/n/add-edge-to-an-unknown-target-raises-valueerror-at-compile-not-at-add-time-d6fa6087f43d
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: langgraph, compile, errors, python

An edge ending at a node that was never added is accepted by add_edge and only fails in compile(). The error text names the node in backticks. Tested with langgraph 1.2.22.
