vetur icon indicating copy to clipboard operation
vetur copied to clipboard

remove type check when not use typescript

Open shixin-guo opened this issue 5 years ago • 9 comments

  • [ y ] I have searched through existing issues
  • [ y ] I have read through docs
  • [ y ] I have read FAQ

Info

  • Platform: macOS
  • Vetur version:0.19.1
  • VS Code version:1.33.1

Problem

I use vue and only js not typescript so I don't want some type linter but vetur show so much wrong alert when I code image image

so how to close these errors and this case not happen yesterday so.......

Reproducible Case

shixin-guo avatar Apr 25 '19 02:04 shixin-guo

props没有Array格式的时候,不会报错,你可以试试。 感觉是个bug

cch6 avatar Apr 25 '19 02:04 cch6

Same issues here, change back to the last version and fixed it.

zggit avatar Apr 25 '19 02:04 zggit

Same issues here, change back to the last version and fixed it.

yes last version(0.18.1) no this question

shixin-guo avatar Apr 25 '19 02:04 shixin-guo

I have encountered the same problem

lian-xiao-xi avatar Apr 25 '19 02:04 lian-xiao-xi

version 0.18.1 is ok

StriveTeam avatar Apr 25 '19 03:04 StriveTeam

Please file new issue with a repro case.

octref avatar Apr 26 '19 03:04 octref

I had the same problem. This took my a while to figure out but I think I have it. To disable type-checking for JavaScript files, add checkJs: false to the compilerOptions section of your jsconfig.json.

This is my jsconfig.json:

{
    "include": ["./src/**/*"],
    "compilerOptions": {
        "checkJs": false
    }
}

residualmind avatar Sep 29 '21 14:09 residualmind

Will fix when https://github.com/vuejs/vetur/pull/1824 merged

yoyo930021 avatar Oct 05 '21 04:10 yoyo930021

Hello?

solidevolution avatar Apr 30 '22 19:04 solidevolution