-
Notifications
You must be signed in to change notification settings - Fork 1
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
Plugin doesn't seem to load under Vue3 #4
Comments
Hi, thanks for the issue.
You need a custom |
Okay, I was a bit unclear there :) I do indeed have the tailwind.config.js file (I use some other Tailwind plugins already). What I meant was that I haven't applied any custom values for |
Ah, then I misunderstood it. I have a tailwind v2 playground here (also linked in the readme). With this onst colors = require('tailwindcss/colors')
module.exports = {
theme: {
extend: {
colors: {
'light-blue': colors.lightBlue,
cyan: colors.cyan,
},
},
},
variants: {},
plugins: [require('tailwindcss-nested-groups')],
} |
@hognevevle Which version of tailwind are you using? All the infos are here: |
@hognevevle Meanwhile I added tailwind as a peer dependency for this plugin. A comparison of the sparing plugin API docs, does not reveal a breaking change. Though please keep in mind, that this plugin was written for V2. |
@hognevevle
|
Thank you so much for your efforts! After upgrading to your latest release, it is now working fine! 😃 I might have done something wrong, but AFAIK I'm using Tailwind V2, through the postcss7 compatibility build. That was the intention, at least. In my package.json I have (Waiting for the next Vue3 patch which will provide support for PostCSS 8.) So I'm not sure exactly what the issue was, but all good now! Thanks again 🥇 |
You are welcome. Glad it works now :) Interesting. I never used the compatibility build, right, could also be that. |
I'm submitting a ...
[X] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project
Summary
I'm unable to make this work under Vue3. Things like
group-scope-hover:xxx
simply do not work (no hover state is triggered). I tried copy-pasting your Usage example into my app (screenshot below). As you can see, the font color changes aren't being applied when hovering.Any ideas? I haven't applied any custom config to tailwind.config.js - all I'm doing is the
require("tailwindcss-nested-groups")
The text was updated successfully, but these errors were encountered: