Skip to content
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

CSS Module reference does not work on v0.34.6 #1178

Closed
ryuseiabe15 opened this issue Apr 13, 2022 · 7 comments
Closed

CSS Module reference does not work on v0.34.6 #1178

ryuseiabe15 opened this issue Apr 13, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@ryuseiabe15
Copy link

After updating Volar to v0.34.6, Volar shows a message "TypeScript intellisense is disabled on template, ..." on <template> tag.
According to the message, I changed the tsconfig setting from "jsx": "react", "jsxFactory": "h" to "jsx": "preserve" and the type of CSS module classes objects has become any; to be more precise, CSS reference is not working for CSS modules.
スクリーンショット 2022-04-13 9 17 55

@ryuseiabe15 ryuseiabe15 changed the title CSS Module reference does not work on v0.34.5 CSS Module reference does not work on v0.34.6 Apr 13, 2022
@johnsoncodehk johnsoncodehk added the bug Something isn't working label Apr 13, 2022
@alleluya-young
Copy link

it seems the same situation in <style scoped>

@customautosys
Copy link

Having the same problem here. Intellisense not working in template and I have changed jsx to preserve in compilerOptions to no avail.

bildo

@ryuseiabe15
Copy link
Author

@johnsoncodehk
Thank you for the fix. I have confirmed that it works fine on v0.34.7.

@dxps
Copy link

dxps commented Apr 20, 2022

Dear @johnsoncodehk & all,

Still not working on my side. Am I missing something?

image

Thanks!

@jomoflash
Copy link

Dear @johnsoncodehk & all,

Still not working on my side. Am I missing something?

image

Thanks!

@dxps In your jsconfig.json, put the following:

"vueCompilerOptions": {
"experimentalDisableTemplateSupport": true
}

Instead of "jsx": "preserve". Should make the error disappear.

@dxps
Copy link

dxps commented Apr 21, 2022

@jomoflash Thanks, James! 🙏
Sure, that setting makes it disappear, as also stated in the error description.
I was hoping to have it working instead. But I guess that is part of a future episode. 😊
image

@johnsoncodehk
Copy link
Member

@dxps See #1219 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants