-
Notifications
You must be signed in to change notification settings - Fork 218
Doesn't work for TSX files #72
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
Comments
How did you solve this? |
Turns out it’s already got support for it, I’m not sure why it wasn’t working originally but soon after I posted this it started to work. |
just installed and it doesn't work for me, lets see if this comment fixes it :) |
doesn't work for me either in .tsx only if I write "class" instead of "className" I get the autosuggest... |
That's weird, it should work without any configuration. I'm still unsure why it didn't for me initially. |
same - it didnt work on tsx originally, then i panicked and clicked around and now it works |
I also ran into this. Not sure if it's anything TSX-related (but it was failing in TSX files for me). But to fix it I simply created a module.exports = {
theme: {},
variants: {},
plugins: [],
}; It seems a config file is what enables this extension in a project. |
In vscode - extensions - Tailwin CSS Intellisense. Click on the settings button ("manage"). Find Tailwind CSS - Include languages add |
I've added
And restarted vscode and it was good to go |
Super its working for me |
You can add this in user settings
|
doesnt work with custom webpack babel typescript react |
@khalidahmada this what it made working for me in Nuxt 3 + TS |
@khalidahmada |
You can find more information here: |
just go to tailwind.config.js and add tsx in the model like this: |
Use this for both jsx and tsx(my config): "tailwindCSS.includeLanguages": {
"typescriptreact": "html",
"javascriptreact": "html"
} |
When using TypeScript with React, this plugin doesn't work. How can I configure it to look at .tsx files?
The text was updated successfully, but these errors were encountered: