Kody błędów
Każdy kod TX jest stały i ma stronę z przyczyną i rozwiązaniem. Kody nigdy nie zmieniają numerów ani nie są używane ponownie.
@textjs/core
@textjs/react
TX002Renderowanie poza korzeniem konsoliHooks and components must be rendered inside a console root (createConsoleRoot / renderToConsole).TX003Nieznany element hostaUnknown host element <…>. Use the exported components (<Box>, <Text>, …).TX004<Box> zagnieżdżony wewnątrz <Text><Box> cannot be nested inside <Text>.TX005Renderowanie po odmontowaniuCannot render into an unmounted console root.TX006Nieznany modyfikator w kombinacji klawiszyUnknown modifier "…" in key combo "…".TX007Nieznany klawisz w kombinacji klawiszyUnknown key "…" in key combo "…".TX008Pusta kombinacja klawiszyEmpty key combo "…".TX009Oczekiwano pojedynczego naciśnięcia klawiszy"…" is not a single key stroke.TX010Brak stdout dla renderToTerminalrenderToTerminal() found no stdout to write to.TX011<Image src> bez DOM<Image src> needs a DOM; pass `pixels` instead.TX012Brak płótna 2D dla <Image><Image> could not get a 2D canvas context to decode the image.TX013Nie udało się załadować <Image><Image> failed to load "…".
@textjs/app
TX014Użycie poza <AppRouter>… must be used inside <AppRouter>. Run your app with `text dev`, or wrap it in <AppRouter routes={…}>.TX015Brak domyślnego komponentu w pliku trasyThe default export is not a React Component in "…".TX016Handler trasy nie zwrócił ResponseNo response is returned from route handler for … …. Ensure you return a `Response`.TX017Brak kompilacji produkcyjnejCould not find a production build in the '…' directory. Try building your app with 'text build' before starting the production server.TX018Brak katalogu app/No app/ directory found in ….TX019text run / text mcp wymagają Bun`text …` requires Bun (route files are imported as TypeScript). Install Bun (https://bun.sh) or run `bunx --bun text …`.TX020Nieznane polecenie CLIUnknown command ….TX028Zablokowany hostBlocked request. This host (…) is not allowed. Add it to `…` in text.config.ts.TX029Nieznana opcja text.configOstrzeżenieUnknown option … in …. It will be ignored.TX030Trasy renderowane po stronie serwera wymagają stale działającego serweraServer-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"`.TX031Nieprawidłowy eksport dynamicInvalid `dynamic` export … in …. Use "auto", "force-static" or "force-dynamic".
@textjs/opencode
TX021Nieprawidłowy URL serwera OpenCodeUse an HTTP(S) server origin without credentials for --target or OPENCODE_SERVER_URL.TX022Port mostu koliduje z OpenCodeThe OpenCode server already uses port …. Pick another with --port.TX023Most już działaBridge already running at …. Connect to … (or pass --port …).TX024Port mostu jest zajętyPort … is already in use. Run bunx @textjs/opencode@latest proxy --port … and connect to ….