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,请在同一项目根目录下运行这两个命令。