Best practice for Tailwind class merging? twMerge?

Do you guys use twMerge or similar? I tried using it but it seems to break something within the stack - I have been using it before though with NextJS standalone, so not sure where the problem is: Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
3 Replies
riccardolardi
riccardolardiOP2y ago
@mattddean thanks - may I ask whether you know why using twMerge directly doesn't work in T3?
mattddean
mattddean2y ago
I don’t, sorry. I’ve seen that error working with icons before and never really figured out what the problem was.
Want results from more Discord servers?
Add your server