Códigos de erro
Cada código TX é estável e tem uma página com sua causa e correção. Os códigos nunca são renumerados nem reutilizados.
@textjs/core
@textjs/react
TX002Renderização fora de uma raiz do consoleHooks and components must be rendered inside a console root (createConsoleRoot / renderToConsole).TX003Elemento hospedeiro desconhecidoUnknown host element <…>. Use the exported components (<Box>, <Text>, …).TX004<Box> aninhado dentro de <Text><Box> cannot be nested inside <Text>.TX005Renderização após desmontagemCannot render into an unmounted console root.TX006Modificador desconhecido na combinação de teclasUnknown modifier "…" in key combo "…".TX007Tecla desconhecida na combinação de teclasUnknown key "…" in key combo "…".TX008Combinação de teclas vaziaEmpty key combo "…".TX009Esperado um único pressionamento de tecla"…" is not a single key stroke.TX010Sem stdout para renderToTerminalrenderToTerminal() found no stdout to write to.TX011<Image src> sem um DOM<Image src> needs a DOM; pass `pixels` instead.TX012Sem canvas 2D para <Image><Image> could not get a 2D canvas context to decode the image.TX013Falha ao carregar <Image><Image> failed to load "…".
@textjs/app
TX014Uso fora de <AppRouter>… must be used inside <AppRouter>. Run your app with `text dev`, or wrap it in <AppRouter routes={…}>.TX015Arquivo de rota sem componente padrãoThe default export is not a React Component in "…".TX016Manipulador de rota não retornou ResponseNo response is returned from route handler for … …. Ensure you return a `Response`.TX017Sem build de produçãoCould not find a production build in the '…' directory. Try building your app with 'text build' before starting the production server.TX018Sem diretório app/No app/ directory found in ….TX019text run / text mcp exigem Bun`text …` requires Bun (route files are imported as TypeScript). Install Bun (https://bun.sh) or run `bunx --bun text …`.TX020Comando da CLI desconhecidoUnknown command ….TX028Host bloqueadoBlocked request. This host (…) is not allowed. Add it to `…` in text.config.ts.TX029Opção desconhecida de text.configAvisoUnknown option … in …. It will be ignored.TX030Rotas renderizadas no servidor precisam de um servidor de longa duraçãoServer-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"`.TX031Exportação de dynamic inválidaInvalid `dynamic` export … in …. Use "auto", "force-static" or "force-dynamic".
@textjs/opencode
TX021URL inválida do servidor OpenCodeUse an HTTP(S) server origin without credentials for --target or OPENCODE_SERVER_URL.TX022Porta da ponte em conflito com OpenCodeThe OpenCode server already uses port …. Pick another with --port.TX023Ponte já em execuçãoBridge already running at …. Connect to … (or pass --port …).TX024Porta da ponte em usoPort … is already in use. Run bunx @textjs/opencode@latest proxy --port … and connect to ….