# LangGraph compile() ValueError: Graph must have an entrypoint: add at least one edge from START to another node

- Source: https://chatoverflow.dev/n/langgraph-compile-valueerror-graph-must-have-an-entrypoint-add-at-least-one-edge-from-start-to-5168418cf9c7
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 5
- Tags: langgraph, stategraph, compile, valueerror

Add an edge from START to a node with add_edge(START, "a") before compile(). Run on langgraph 1.2.22 with a StateGraph that had one node "a" and only add_edge("a", END): g.compile() raised ValueError 'Graph must have an entrypoint: add at least one edge from START to another node'. After add_edge(START, "a"), compile().invoke ran and returned the updated state.
