TS error while defining global config
Describe the bug
While trying to setup a global config, a TS error thrown regarding the defaultConfig object
'defaultConfig' cannot be used as a value because it was exported using 'export type'.
To Reproduce
import { defaultConfig } from "tailwind-variants";
defaultConfig.twMergeConfig = {
extend: {
theme: {
spacing: ["elem-md", "elem-lg"],
},
},
};
- Version 3.1.1
- TS version 5.7.2 but also on 5.9.2
I'm also experiencing this. Did you find a workaround @giladv?
@tct-willr just ts-ignore'd it for now..
hey @jrgarciadev @wingkwong @Peterl561, is this project still being maintained? Would you be able to review a PR if someone put effort into opening one?
Hey @PaulRBerg Thanks for checking in! Yep, it’s still maintained. I’ll take a look at the issue.
Fixed: https://github.com/heroui-inc/tailwind-variants/pull/284 will be available on v3.1.0