Plugin doesn't work with Tailwind v3
dhruvkb opened this issue · 5 comments
Running this plugin with Tailwind 3 in a Nuxt project gives the following error:
TypeError: Cannot read properties of undefined (reading 'parent')
The plugins documentation on Tailwind mentions different parameters to the plugin()
function between v2 and v3, notably the absence of variants
param (which makes sense considering that all variants are enabled by default in the JIT engine).
Tailwind 3 has RTL support out of the box - you don't need this plugin.
https://tailwindcss.com/docs/hover-focus-and-other-states#rtl-support
I was kind of hoping they'd provide start/end utilities but they instead went with variants to use with the existing left/right utilities. Either way , thanks for the heads up @danharrin. Feel free to close the issue.
I want to use this plugin, I dont like the way Tailwindcss used to support RTL
I agree that the integrated solution is not as useful as this, it existed as a plugin before this one existed.
i will look into how to add support for v3 (there is another issue with relevant info)
Just tested the plugin with Tailwind3, all the utilities work with no issue.
if there is an issue, please reopen 😄