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

Steps to reproduce

use webpack and ts-loader to compile .vue file

What is expected?

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

What is actually happening?

ts-loader and ForkTsCheckerWebpackPlugin passed it

avatar
Mar 2nd 2021

The error is there with TS so this is probably something with your local TS setup.


Remember to use the forum or the Discord chat to ask questions!