Open duduluu opened 6 years ago
With VueJS 3 you can use vue-tsc --declaration --emitDeclarationOnly
when you add the package vue-tsc
https://github.com/johnsoncodehk/volar/tree/master/packages/vue-tsc
This will generate the declaration file where you have set your outDir
in tsconfig.json
In 2024, this problem is still alive. Too terrible.
I thought vue-cli was deprecated anyway, so it should come as no suprise that no more development is going on.
Yeah you're better off swapping to vite @seamory @bodograumann, vue cli is dead.
Version
3.0.0-beta.6
Reproduction link
https://github.com/HuijiFE/void-ui/tree/0.1
Steps to reproduce
What is expected?
Output declaration files after building.
What is actually happening?
There is not any declaration files after building.
I have set
"declaration": true,
in tsconfig.json, but it doesn't output the typescript declaration files.And then I use
tsc --emitDeclarationOnly
, although it output the declaration files but without vue single file component.