Ultimate

X_ASYNC_CONTEXT_UNAVAILABLE

Means

async context unavailable

Typical cause

node:async_hooks is stubbed to {} in this runtime, so nothing can be made ambient — a browser bundle

Fix

the scope is server-only: open it in apps/web/server.ts or a route handler, and keep every module that opens one out of the import graph of a client island entry

Listed under Core and runtime

This page as markdown