Subscribe on changes!

[TypeScript] Type check is not working on `setup`

avatar
Mar 2nd 2021

Version

3.0.7

Reproduction link

https://codesandbox.io/s/kind-bush-1evm5?file=/src/App.vue

image

What is expected?

ts-loader should throws error. becuse SetupContext has no member root

What is actually happening?

ts-loader and ForkTsCheckerWebpackPlugin passed it

Some Questions

  1. What is the best way to use TS in vue?
  2. can i use tsc --noEmit to make type check on .vue files?
avatar
Mar 2nd 2021

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!