The problem I am running into is that the local typecheck is OK, but the Vercel deployment typecheck is failing:
"@chakra-ui/react": "^3.25.0",
"@emotion/react": "^11.14.0",
export const buttonRecipe = defineRecipe({
base: {
...
},
variants: {
variant: {
...
error: {
borderWidth: '1px',
borderColor: 'red.400',
color: 'red.200',
_hover: { borderColor: 'red.700', color: 'red.200', bg: 'red.950' }
}
},
size: {
...
}
}
});
Then i run "npx @chakra-ui/cli typegen src/theme/index.ts which updates....
You can see it shows up OK here in IDE:

and if I run a typecheck yarn tsc no issues either...
However, in Vercel:
Type error: Type '"error"' is not assignable to type 'ConditionalValue<"outline" | "solid" | "subtle" | "surface" | "ghost" | "plain" | undefined>'.
So why could this be?