Index
[Nuxt] Set up TypeScript type checking in a Nuxt project
Tested with: Nuxt v3
Whilst Nuxt supports TypeScript, it doesn’t enable type checking (at build time) by default.
To enable this, first install the dependencies.
npm i -D vue-tsc typescriptyarn add -D vue-tsc typescriptpnpm add -D vue-tsc typescriptThen update your config file:
export default defineNuxtConfig({ typescript: { typeCheck: true, },});