TX019

text run / text mcp 需要 Bun

主控台

Text.js error TX019: `text …` requires Bun (route files are imported as TypeScript). Install Bun (https://bun.sh) or run `bunx --bun text …`.

發生原因

text run 和 text mcp 會直接匯入 .tsx 路由檔案,因此需要 Bun 原生的 TypeScript 載入器。以 Node 啟動時,若 PATH 中有 bun,CLI 會使用 Bun 重新執行;這個錯誤表示找不到 bun。

修正方式

安裝 Bun,或直接使用 Bun 執行指令:

bunx --bun text runbunx --bun text mcp

text dev、text build 和 text start 可在 Node 上執行。