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 は設定の型をチェックし、エディター内でこれらの問題を検出します。