Skip to content

langgraph-cli dev error : Top-level await is currently not supported with the "cjs" output format #33

Open
@jhau

Description

@jhau

Hi
When I tried running the langgraph-cli dev command, I get the following error,

info: ▪ Starting server...
info: ▪ Initializing storage...
info: ▪ Registering graphs from /Users/jeff/work/ai-chat/open-mcp-client/agent-ts
info: ┏ Registering graph with id 'sample_agent'
info: ┗ [1] { graph_id: 'sample_agent' }
error: ▪ Error: Transform failed with 1 error:
/Users/jeff/work/ai-chat/open-mcp-client/node_modules/.pnpm/pkce-challenge@4.1.0/node_modules/pkce-challenge/dist/index.node.js:5:9: ERROR: Top-level await is currently not supported with the "cjs" output format

The pkce-challenge package is a dependency of :

@langchain/mcp-adapters 0.3.3
└─┬ @modelcontextprotocol/sdk 1.7.0
└── pkce-challenge 4.1.0

Any help on resolving this issue is much appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions