TX017

沒有正式環境建置

主控台

Text.js error TX017: Could not find a production build in the '…' directory. Try building your app with 'text build' before starting the production server.

發生原因

text start 提供 text build 的輸出,但輸出目錄(outDir,預設為 dist)中沒有建置結果。

修正方式

text buildtext start

如果你在 text.config.ts 中變更了 outDir,請從同一個專案根目錄執行這兩個指令。