TX010

No stdout for renderToTerminal

Console

Text.js error TX010: renderToTerminal() found no stdout to write to.

Why this happens

renderToTerminal() writes ANSI frames to process.stdout by default. It ran somewhere without one (a browser, a worker) and no stdout option was passed.

How to fix it

Run it under Bun or Node, or pass a writable stream:

import { renderToTerminal } from "@textjs/react/terminal";await renderToTerminal(<App />, { stdout: process.stdout, stdin: process.stdin });

In the browser, use renderToConsole instead.