Error Codes
Every Text.js error and warning carries a stable TX code and a link to its page. Codes are never renumbered or reused.
@textjs/core
@textjs/react
TX002Rendered outside a console rootHooks and components must be rendered inside a console root (createConsoleRoot / renderToConsole).TX003Unknown host elementUnknown host element <…>. Use the exported components (<Box>, <Text>, …).TX004<Box> nested inside <Text><Box> cannot be nested inside <Text>.TX005Render after unmountCannot render into an unmounted console root.TX006Unknown modifier in key comboUnknown modifier "…" in key combo "…".TX007Unknown key in key comboUnknown key "…" in key combo "…".TX008Empty key comboEmpty key combo "…".TX009Expected a single key stroke"…" is not a single key stroke.TX010No stdout for renderToTerminalrenderToTerminal() found no stdout to write to.TX011<Image src> without a DOM<Image src> needs a DOM; pass `pixels` instead.TX012No 2D canvas for <Image><Image> could not get a 2D canvas context to decode the image.TX013<Image> failed to load<Image> failed to load "…".
@textjs/next
TX014Used outside <AppRouter>… must be used inside <AppRouter>. Run your app with `text dev`, or wrap it in <AppRouter routes={…}>.TX015Route file has no default componentThe default export is not a React Component in "…".TX016Route handler returned no ResponseNo response is returned from route handler for … …. Ensure you return a `Response`.TX017No production buildCould not find a production build in the '…' directory. Try building your app with 'text build' before starting the production server.TX018No app/ directoryNo app/ directory found in ….TX019text run / text mcp require Bun`text …` requires Bun (route files are imported as TypeScript). Install Bun (https://bun.sh) or run `bunx --bun text …`.TX020Unknown CLI commandUnknown command ….TX021Invalid proxy targetUse an HTTP(S) server origin without credentials for --target or OPENCODE_SERVER_URL.TX022Proxy port collides with OpenCodeThe OpenCode server already uses port …. Pick another with --port.TX023Bridge already runningBridge already running at …. Connect to … (or pass --port …).TX024Proxy port in usePort … is already in use. Run bunx @textjs/next proxy --port … and connect to ….TX028Blocked dev server hostBlocked request. This host (…) is not allowed. Add it to `vite.server.allowedHosts` in text.config.ts.TX029Unknown text.config optionWarningUnknown option … in …. It will be ignored.TX030Server-rendered routes need a long-lived serverServer-rendered routes (…) need a long-lived server, which the … adapter does not provide. Use `text build --adapter bun` or `text start`, or remove `export const runtime = "server"`.