nuxi typecheck watch

Hey there ! Is there a way to run nuxi typecheck in watch mode ?
2 Replies
kapa.ai
kapa.ai5d ago
Hi @() => "CodingBill";. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the knowledge sources provided, there doesn't appear to be a built-in watch mode for the nuxi typecheck command. The typecheck command runs vue-tsc to check types throughout your app, but there's no mention of a watch flag or option in the documentation. The nuxi typecheck command is described as:
npx nuxi typecheck [ROOTDIR] [--cwd=<directory>] [--logLevel=<silent|info|verbose>]
npx nuxi typecheck [ROOTDIR] [--cwd=<directory>] [--logLevel=<silent|info|verbose>]
With only these options available according to the documentation. If you want to have type checking during development, you can enable it in your nuxt.config.ts file instead:
export default defineNuxtConfig({
typescript: {
typeCheck: true
}
})
export default defineNuxtConfig({
typescript: {
typeCheck: true
}
})
This will enable type-checking at build or development time as mentioned in the TypeScript documentation. Alternatively, you could set up a file watcher using another tool that runs the nuxi typecheck command when files change, but this isn't a built-in feature of the Nuxt CLI based on the provided knowledge sources. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai5d ago
<@180843812204183552> Kapa.ai is still learning and improving, please let me know how I did by reacting below.

Did you find this page helpful?