NuxtJS3 : Typescript TypeCheck not working

Viewed 105

I'm tying to enable typechecking in dev mode on Nuxtjs 3 but console is not showing any error.

Node version

The file that would show error :

<script lang="ts" setup>
  const toto:string = 1;
  const f:number = "XfffXX";
</script>

<template>
  <div>
    {{ f }}
  </div>
</template>

The command nuxi typecheck is working :

npx nuxi typecheck output

On the browser side, no errors :

enter image description here

My nuxt.config.ts :

import { defineNuxtConfig } from 'nuxt'

// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
    builder: 'webpack',
    typescript: {
        strict: true,
        typeCheck: true
    },
})

0 Answers
Related