question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CSS Module reference does not work on v0.34.6

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
customautosyscommented, Apr 16, 2022

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

bildo

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found