CSS Module reference does not work on v0.34.6
See original GitHub issueAfter 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.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
CSS Modules - referencing classes from other modules
This is a common issue when migrating to CSS Modules. In short, a css module cannot override a style from another css module,...
Read more >A deep dive into CSS Module
In this tutorial, we'll look into some common issues that frequently arise when writing CSS and learn how CSS Module can help us...
Read more >How to Migrate a React Application to CSS Modules with ...
Because each CSS module is tied to a specific file (unless you use the global file) you can't directly reference a class unless...
Read more >A Guide to CSS Modules with React - Code of Joy
This section discusses how to run JavaScript code that references CSS files in Node.js. The next section will discuss how to run this...
Read more >Using CSS Module Scripts to import stylesheets - web.dev
Currently CSS @import rules don't work in constructable stylesheets, including CSS module scripts. If @import rules are present in a ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Having the same problem here. Intellisense not working in template and I have changed jsx to preserve in compilerOptions to no avail.
@dxps See https://github.com/johnsoncodehk/volar/issues/1219#issuecomment-1104548432.