TX029警告
未知的 text.config 选项
发生原因
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 会对配置做类型检查,在编辑器中发现这些问题。