Closed calebeaires closed 3 years ago
See https://github.com/johnsoncodehk/volar/issues/245.
You could use @ts-ignore
to ignore some error in specific lines. But in your case, I recommend you just remove vue-tsc to ignore all type-checking on build, because when you give up complete type safety, there is no point in using vue-tsc. And you can still found all vue-tsc's errors in IDE with volar.
Thanks for the tip! I will keep it at another script directive. Fix type issues in the future.
Vue Version 2.^2.6.11 vue-tsc = ^0.2.0
When trying to migrate from vue-cli to Vite and using vue-tsc I am getting many issues on the build that I hadn't before. Problemas like
Some of those problems come from a bad code, but others can pass without any problems. For example, here is some code.
vue-tsc does not recognize a prop when it is declared at the decorator @Component
I have found some workaround like use of Vue.extend to declare props. But my project is very big and I would like to find some other solution without change everthing.