New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vue-tsc
shows error with css modules + noPropertyAccessFromIndexSignature
#1089
Comments
To reduce depends for vue-tsc, we don't provide css class parser in vue-tsc, so For This is the reason lead to different behavior. I will change |
I see. Thank you for explanation. I was using this behavior to find wrong class names. <template>
<div :class="$style.fooo">foo</div> <!-- typo -->
</template>
<style module>
.foo {
color: red;
}
</style> Would you have plan to collect Since it is possible to check it using volar, I am ok with changing the type to |
@sapphi-red Could you point out which API for resolve css module class names from |
I digged down this a bit.
May be it needs to split |
@sapphi-red Thank you for your explanation! But since the work are a bit much, I'll look at it later. I just change |
After vue-tsc v0.33.3, the case below shows error when
noPropertyAccessFromIndexSignature
istrue
in tsconfig.vue-tsc below v0.33.3 shows no error and also volar does not show any error with any version.
Reproduction
https://stackblitz.com/edit/vitejs-vite-g65tbc
Run
npm run check
(which will runvue-tsc --noEmit
)The text was updated successfully, but these errors were encountered: