Skip to content

No errors are reported in vue3 #783

@cuihaoweb

Description

@cuihaoweb

Current behavior

No errors were detected in vue3

Expected behavior

Report an error in the console

Steps to reproduce the issue

This is used in vue3:

<script setup lang="ts">
const num = ref<string>(0);
const addCount = () => {
    num.value++;
}
</script>

this is webpack.config.js:

new ForkTsCheckerWebpackPlugin({
    typescript: {
        extensions: {
            vue: {
                disable: false,
                compiler: '@vue/compiler-sfc'
            }
        }
    }
}),

num is a string, but ts does not report an error after ++

Issue reproduction repository

Environment

  • "fork-ts-checker-webpack-plugin": ^7.2.13
  • "typescript": ^4.8.4
  • "ts-loader": ^9.4.1
  • "vue": "^3.2.41"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions