vitejs / vite-plugin-vue2

Vite plugin for Vue 2.7
MIT License
543 stars 46 forks source link

doesn't support typescript type assertion #87

Open tjx666 opened 1 year ago

tjx666 commented 1 year ago

image

version:

Fnxxxxo commented 1 year ago

And vue-tsc checking always complains about it.

JosephKrusling commented 1 year ago

has anyone found a workaround?

Fnxxxxo commented 1 year ago

has anyone found a workaround?

Currently, we can close this checking by tsconfig

{
  "vueCompilerOptions': {
    "skipTemplateCodegen": true
  }
}
zWingz commented 1 year ago

how to resolve this problem ?

tjx666 commented 1 year ago

currently, I use https://github.com/vuejs/language-tools/pull/3215

@zWingz