-
Notifications
You must be signed in to change notification settings - Fork 14
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
nuxt3 tailwind content-include throwing error #8
Comments
This might be because tailvue has dark-mode classes added to its components .. maybe you have to turn dark mode on? |
Which version of tailwind are you using? |
Currently in my package.json I have
I do have darkmode turned on, I even have a toggle for that. If I remove every occurence with ":dark" that's in the compiled file the project at least builds again - but theres still a big overlay that does not get the classes applied. |
Did you import the module in correct order inside your modules: [
'@nuxtjs/tailwindcss',
'@tailvue/nuxt',
], So you want to make sure the I put together a quick demo that converts to Tailwind from WindiCSS let me know if that is any help. |
It sadly does not really. I've created a very very very minmal repo here: https://github.com/bennet-esyoil/tailvue-nuxt3 To run, just |
What is the |
I think that class you are adding is conflicting with Tailwind |
If I remove that then I see the following
so I am not sure these are getting used properly |
I see what you mean. Autoformatter is breaking that for me. When I remove the whitespace it at least throws me another error. So I guess my problem is not related to this lib at all, but somehow made the error first appear. I've been using it that way for at least a month now without any issues. Feel free to close. |
Yea I would check on those classes you are adding and make sure they are not conflicting with the base tailwind classes which is where I think the issue with the TailVue lib was it needed those dark class directives. Not related but in it nuxt config you can just use modules instead of buildModules when using Nuxt 3 according to their docs. |
Hey,
I'm getting the following error:
tailwind.config.js:
tailwind.css in assets has the following on line 71:
@tailwind components;
When I take out the
"node_modules/tailvue/dist/tailvue.es.js",
in the content section my project builds again.Any more information needed?
The text was updated successfully, but these errors were encountered: