-
Notifications
You must be signed in to change notification settings - Fork 180
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
Tailwind CSS IntelliSense Extension not working! #247
Comments
I don't understand the problem you are having because the problem is located on the IntelliSense plugin. |
Using tailwindcss-module in your nuxt problem? I'm having problem with the intellisense, the classes names are not suggesting for me. |
Default classes or you extend some of them ? Can you provide screen or your config ? |
Not extending, using the inbuilt default. Here is the module.exports = {
purge: {
enabled: process.env.NODE_ENV === 'production',
content: [
'components/**/*.vue',
'layouts/**/*.vue',
'pages/**/*.vue',
'plugins/**/*.js',
'nuxt.config.js',
// TypeScript
'plugins/**/*.ts',
'nuxt.config.ts'
]
},
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
} |
Try restarting your VS Code and see if the problem still occurs |
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 |
I don’t know, if works for all my projects using it 🤔 |
I have the same issue.
Yep -- after changing the import to require, it works now. Kinda a dumb mistake on my part. |
I'm not using any import inside the |
Look at the VSCode's Output tab for the tailwind autocomplete extension. That gives some useful info. |
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 |
There is no output logs. But it's not working either.. :/ I'm using this extension in order to work. |
I'm having a similar issue, though its a great way to really learn the syntax it makes it a little less fun to use. |
@jamiecarter7 even after creating the |
I created the app from scratch using the nuxt create and selecting the
tailwindCSS option.
But the intellisense is not working since I set up the project.
I have tried to look through the nuxt folder for the base tailwind files
but I am unable to find any files to look at.
The tailwind classes are working! It's purley that the intellisense is not
working.
…On Tue, 2 Feb 2021 at 10:34, Sébastien Chopin ***@***.***> wrote:
@jamiecarter7 <https://github.com/jamiecarter7> even after creating the
tailwind.config.js file?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#247 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACIZSDVMGU7XV3LIE62F5W3S47IKDANCNFSM4WFOEISA>
.
|
Try to run |
Ok, that fixed my issue! :)
Thank you!
Is this a step I missed in the setup process?
|
I believe we shall keep creating the Or at least, in our setup documentation, adding a note here about running PR welcome <3 |
As a temporary fix: Do the following, until they fix the problem:
|
This is not an issue. The tailwind css VSCode extension is activated only if it detects a |
If we want the tailwind css intellisense support we have to do the manual tweak(creating the |
IMO that workflow might be detrimental to others. For example, if I have the Tailwind extension installed but am not actually using tailwind in my project, the popups from the extension will only make it more difficult to code and create useless clutter. Moreover, since almost all projects need to define a custom
I agree with this. Maybe |
We are planning to generate a |
I followed this guide but without installing nuxt with tailwind in the CLI, I installed it with npm and it worked for me. |
Was having this issue after an upgrade and it turned out that for some reason I was missing the https://github.com/tailwindlabs/tailwindcss-intellisense#troubleshooting |
npx tailwindcss init |
I really struggled with this one, and tried so many suggested fixes. At the end of the day, i installed the previous version of Tailwind CSS IntelliSense extension and now works fine. |
It looks like the one with the |
TailwindCSS extension for VS Code provides a settings option:
So I suggest sticking with |
I found that Intellisense for the extension will not work with single quotes, If I use double quotes in my classNames, the intellisense works fine. The solution for me was to update my settings.json to include
|
Same issue with Nuxt 3 stable, nothing of the above works... |
I downgraded the tailwind intellisense plugin to version 0.9.1 and everything worked as expected |
Have you tried https://tailwindcss.nuxt.dev/tailwind/editor-support ? |
Yes, but it was a bug with the tailwind intellisense plugin (I don't have the link right now), all worked out fine with version 0.9.1 |
indeed, disabling .nuxt/tailwind.config.cjs & exclude .nuxt from intellisense inspection make it works
|
It doesn't say anything about the above in the documentation |
it's work for my nuxt 3 project, ty |
I also generated the
tailwind.config.js
but still it's not working.. Why is that?The text was updated successfully, but these errors were encountered: