-
Notifications
You must be signed in to change notification settings - Fork 712
V3 Intellisense not working correctly #2424
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
I found the v3 version currently doesn“t have the "@nuxtjs/tailwindcss" module(which would generate a tailwind configuration file in the .nuxt folder), so I think we need to manually configure tailwind for now. It works for me after I added a css file in the assets folder with the content @tailwind base;
@tailwind components;
@tailwind utilities; Although the extension works without needing to add the tailwind configuration file,this doesn't align with my expectations. |
based on this blog,I made some small adjustments assets/global.css@import "tailwindcss";
@import "@nuxt/ui"; nuxt.config.tsexport default defineNuxtConfig({
css: ['@/assets/global.css']
}) |
@metkm that screenshot is a different issue to this one, if you are still experiencing it you could open up a new issue with a reproduction/link? In regard of this Intellisense issue: Tailwind v4 now has a css-first approach, so the Last note: one of the reasons why |
I have this issue only on vercel. Did you use vercel too? @sandros94 |
Ok no, my bad. Double checking my deployments I was in fact NOT deploying on Vercel. |
I did several clean installs. I find this here in the output for the Tailwind CSS Intellisense pre-release plugin:
Tailwind itself works. So any classes I use get applied. Only the intellisense is not working. |
@silvio-e could you try and disable all VS Code extensions and only reactivate Tailwind's one? I'm starting to suspect there might be a simple conflict between them |
I can confirm this is an issue with Nuxt UI Module, I created fresh projects with 1 - Nuxt - Nuxt UI Module - intellisense does not work ❌ |
Just to make sure I'm on the same page of yours @fayazara: Just in case, I would like to remember everyone that Nuxt UI v3 uses an alpha release of Tailwind CSS v4. As such I would need your help with as many details as possible (OS, IDE, installed Tailwind CSS Extension, versions), or even better via a link with a full reproduction. So far I'm struggling to pinpoint the issue (although, it happened myself once too, but haven't been able to reproduce since). I would also like not to open up a new upstream issue until I'm objectively sure about it, since they do already have a number of issues on this topic without a tangible pattern. |
For what version of Nuxt UI are you asking this question?
v3-alpha
Description
I'm experience problems with the VS Code Tailwind Intellisense plugin. I have used ui v2 without problems so far, but when using v3 it only shows suggestions when a tailwindcss.config.ts is freshly edited, but then after reloading or restarting VS Code, it doesn't work anymore. When it's working, it only shows a few of the classes, but not the most common ones like padding, margin etc..
Has someone experienced the same issue and knows a fix for that?
The text was updated successfully, but these errors were encountered: