Codes d’erreur
Chaque code TX est stable et dispose d’une page indiquant sa cause et sa solution. Les codes ne sont jamais renumérotés ni réutilisés.
@textjs/core
@textjs/react
TX002Rendu hors d’une racine de consoleHooks and components must be rendered inside a console root (createConsoleRoot / renderToConsole).TX003Élément hôte inconnuUnknown host element <…>. Use the exported components (<Box>, <Text>, …).TX004<Box> imbriqué dans <Text><Box> cannot be nested inside <Text>.TX005Rendu après démontageCannot render into an unmounted console root.TX006Modificateur inconnu dans une combinaison de touchesUnknown modifier "…" in key combo "…".TX007Touche inconnue dans une combinaison de touchesUnknown key "…" in key combo "…".TX008Combinaison de touches videEmpty key combo "…".TX009Une seule frappe attendue"…" is not a single key stroke.TX010Absence de stdout pour renderToTerminalrenderToTerminal() found no stdout to write to.TX011<Image src> sans DOM<Image src> needs a DOM; pass `pixels` instead.TX012Aucun canvas 2D pour <Image><Image> could not get a 2D canvas context to decode the image.TX013Échec du chargement de <Image><Image> failed to load "…".
@textjs/app
TX014Utilisation en dehors de <AppRouter>… must be used inside <AppRouter>. Run your app with `text dev`, or wrap it in <AppRouter routes={…}>.TX015Aucun composant par défaut dans le fichier de routeThe default export is not a React Component in "…".TX016Aucune Response renvoyée par le gestionnaire de routeNo response is returned from route handler for … …. Ensure you return a `Response`.TX017Aucun build de productionCould not find a production build in the '…' directory. Try building your app with 'text build' before starting the production server.TX018Aucun répertoire app/No app/ directory found in ….TX019text run / text mcp nécessitent Bun`text …` requires Bun (route files are imported as TypeScript). Install Bun (https://bun.sh) or run `bunx --bun text …`.TX020Commande CLI inconnueUnknown command ….TX028Hôte bloquéBlocked request. This host (…) is not allowed. Add it to `…` in text.config.ts.TX029Option text.config inconnueAvertissementUnknown option … in …. It will be ignored.TX030Nécessité d’un serveur persistant pour les routes avec rendu côté serveurServer-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"`.TX031Export dynamic invalideInvalid `dynamic` export … in …. Use "auto", "force-static" or "force-dynamic".
@textjs/opencode
TX021URL du serveur OpenCode invalideUse an HTTP(S) server origin without credentials for --target or OPENCODE_SERVER_URL.TX022Conflit entre le port du pont et celui d’OpenCodeThe OpenCode server already uses port …. Pick another with --port.TX023Pont déjà en cours d’exécutionBridge already running at …. Connect to … (or pass --port …).TX024Port du pont déjà utiliséPort … is already in use. Run bunx @textjs/opencode@latest proxy --port … and connect to ….