TX029警告

未知的 text.config 選項

主控台

Text.js warning TX029: Unknown option … in …. It will be ignored.

發生原因

text.config.ts 匯出了 Text.js 不會讀取的鍵,通常是拼字錯誤(將 basePath 寫成 basepath),或將 Vite 選項放在最上層。

修正方式

修正拼字,或將 Vite 選項移至 vite 下:

text.config.tsts
import { defineConfig } from "@textjs/app";export default defineConfig({  basePath: "/console",  vite: { server: { open: true } },});

defineConfig 會檢查設定的型別,並在編輯器中找出這些問題。