tailwindcss: Tailwind CSS IntelliSense Extension not working!
I also generated the tailwind.config.js but still it’s not working… Why is that?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 3
- Comments: 38 (2 by maintainers)
Try restarting your VS Code and see if the problem still occurs
We are planning to generate a
.nuxt/tailwind.config.jsautomatically so the VS Code extension will work seamlessly.I believe we shall keep creating the
tailwind.config.jsfile in order to keep intellisense working: https://github.com/tailwindlabs/tailwindcss-intellisense#troubleshootingOr at least, in our setup documentation, adding a note here about running
npx tailwind initto have intellisense working.PR welcome ❤️
Try to run
npx tailwind initLook at the VSCode’s Output tab for the tailwind autocomplete extension. That gives some useful info.
I have the same issue. UPDATE: looked in VSCode’s ‘Output’ for the extension:
Yep – after changing the import to require, it works now. Kinda a dumb mistake on my part.
indeed, disabling .nuxt/tailwind.config.cjs & exclude .nuxt from intellisense inspection make it works
https://github.com/tailwindlabs/tailwindcss-intellisense/issues/663#issuecomment-1316788128
As a temporary fix: Do the following, until they fix the problem:
npx tailwind initin your terminal, it should create tailwind.config.jsTailwindCSS extension for VS Code provides a settings option:
tailwindCSS.experimental.configFile, but unfortunately doesn’t play well with.tsconfig.So I suggest sticking with
tailwind.config.cjs, it will work in a similar fashion.npx tailwindcss initworked out. But I already had atailwind.config.tsfile:It looks like the one with the
.jsshould exist.Not extending, using the inbuilt default.
Here is the
tailwind.config.jsnpx tailwindcss init it works for me
Was having this issue after an upgrade and it turned out that for some reason I was missing the
tailwindcssmodule in my workspace. Got around it by installing it as a devDependency.https://github.com/tailwindlabs/tailwindcss-intellisense#troubleshooting
If we want the tailwind css intellisense support we have to do the manual tweak(creating the
tailwind.config.js) right. This workflow can be improved by nuxt or tailwind side 😃 That’s my suggestion.I have the same issue a lot. I have to deactivate and reactivate the plugins every time. I don’t know if it’s related to the module
Tried restarting the VSCode, Still the same problem.
As a workaround, I installed it: https://marketplace.visualstudio.com/items?itemName=Zignd.html-css-class-completion and it was working after a couple of mins.
Is it a bug? @Atinux