-
Notifications
You must be signed in to change notification settings - Fork 74
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
Cannot work in .vue file #187
Comments
Hi there, are you able to provide a simple reproduction for me to test against? I don't work with Vue, but if you can provide a reproduction I should be able to find out what's happening! |
I opened a repository to test typescript-plugin-css-modules in vue. It works in and doesn't work in And if VSCode extenstion TypeScript Vue Plugin (Volar) is enabled, typescript-plugin-css-modules will not work either. |
Thank you! I'll try to investigate and find a resolution this week. |
I think it has something to do with vue-tsc/volar. |
I'm having the same problem but for @mrmckeb Any updates? |
@otomad Actually, Volar seems to have an option that lets you change the TypeScript version it uses under the hood; see if changing that to the workspace version fixes your problem. Open up the command palette (Ctrl/CMD + Shift + P), and find the "Volar: Select TypeScript Version" item: And then choose "Use workspace version": |
Thanks @aradalvand! @otomad can you confirm that this suggestion solves your issue? |
No, it still doesn't work. |
I've spent some time digging into this today, and it looks like this is not supported by Volar - as @MichaelBitard said. Here the author's state that they don't support plugins: Here they detail why: I'll have to close this off for now sorry, but would love to help you if I could. |
@aradalvand if you're still having issues with Svelte, please create a separate ticket/repro repo and I can dig in. It may be a similar issue, but I can investigate. |
Well, thank you very much anyway. |
Describe the bug
It can be working properly in *.ts, *.tsx files, but cannot be working in *.vue files.
Screenshots
works fine in *.ts
works fine in *.tsx
cannot work in *.vue, detect as
Record<string, string>
.Desktop
Additional context
One more thing, if enable VSCode extension TypeScript Vue Plugin (Volar), it will conflict with typescript-plugin-css-modules, and crash the tsserver.
The text was updated successfully, but these errors were encountered: