RC
RC
  • Get Started
  • Guide
  • API
  • Examples
  • Community
    • useAppConfig
    • useAsyncData
    • useCookie
    • useError
    • useFetch
    • useHead
    • useHydration
    • useLazyAsyncData
    • useLazyFetch
    • useNuxtApp
    • useRequestEvent
    • useRequestHeaders
    • useRoute
    • useRouter
    • useRuntimeConfig
    • useState
    • <NuxtPage>
    • <NuxtLayout>
    • <NuxtLink>
    • <NuxtLoadingIndicator>
    • <NuxtErrorBoundary>
    • <NuxtWelcome>
    • <Teleport>
    • $fetch
    • abortNavigation
    • addRouteMiddleware
    • clearError
    • clearNuxtData
    • createError
    • defineNuxtComponent
    • defineNuxtRouteMiddleware
    • definePageMeta
    • navigateTo
    • prefetchComponents
    • preloadComponents
    • refreshNuxtData
    • setPageLayout
    • setResponseStatus
    • showError
    • updateAppConfig
    • Lifecycle Hooks
    • Kit Utilities
    • nuxi add
    • nuxi analyze
    • nuxi build
    • nuxi cleanup
    • nuxi dev
    • nuxi generate
    • nuxi info
    • nuxi init
    • nuxi prepare
    • nuxi preview
    • nuxi typecheck
    • nuxi upgrade
    • Nuxt Config

nuxi typecheck

npx nuxi typecheck [rootDir]

The typecheck command runs vue-tsc to check types throughout your app.

OptionDefaultDescription
rootDir.The directory of the target application.

This command sets process.env.NODE_ENV to production. To override, define NODE_ENV in a .env file or as a command-line argument.

You can also enable type-checking at build or development time by installing vue-tsc and typescript as devDependencies and enabling the typescript.typeCheck option in your nuxt.config file.

Commands

nuxi preview

Commands

nuxi upgrade