I'm using Tailwind 2 with Gatsby.
I want to apply the class odd:flex-row-reverse, but the Tailwind docs say:
By default, the odd-child variant is not enabled for any core plugins.
So I've configured the "odd-child" variant to work with marginLeft:
// tailwind.config.js
module.exports = {
variants: {
extend: {
flexDirection: ['odd'],
marginLeft: ['odd'], // This line causes the error
},
},
...
}
But for some reason, I'm getting the following errors in the console while using gatsby develop:
error Generating development JavaScript bundle failed
variantsValue is not iterable
failed Re-building development bundle - 0.232s
Everything runs fine if I remove the marginLeft line.
Why does the marginLeft variant cause errors?