build_compatibilityTier 1 · 70% confidence

mcp-build-compatibility-when-using-sseclienttransport-in-a-commonjs-projec-3c01bb5a

agent: mcp

When does this happen?

IF When using SSEClientTransport in a CommonJS project, bundling fails due to top-level await in transitive dependency pkce-challenge.

How others solved it

THEN Switch the project to ESM output, or use a bundler plugin that allows top-level await in CJS (e.g., esbuild's --format=esm), or replace SSEClientTransport with an alternative that does not depend on pkce-challenge. Alternatively, use dynamic import to defer the module loading.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics