-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vue: Unresolvable type: TSConditionalType #232
Comments
Yikes, seems like this isn't unique to I'm not sure I like the idea of having to patch around this just because Vue's compiler doesn't support it 🤔 |
But then it wouldn't be working at all in vue right? Has it been working? |
There are CI checks in place for Vue and nothing has flagged up There's also an example, and nothing has flagged up I don't really like the idea of changing something that seems to be working fine for all other TypeScript-based frameworks just because Vue's compiler has a specific use-case 😕 |
Yes thats true, let me see why the examples working |
So the problem was with trying to this withDefaults(
defineProps<
{
title?: string
} & FlowAlertProps
>(),
{
type: 'info',
},
) instead of this withDefaults(
defineProps<{
title?: string
type: FlowAlertProps['type']
}>(),
{
type: 'info',
},
) Thanks for the help @joe-bell |
Describe the bug
When using CVA (both beta and the stable version) with vue SFC I get an error:
To Reproduce
Checkout https://github.com/amritk/cva-error
Its a new create vue app with cva added
Expected behavior
No error
Screenshots
Desktop (please complete the following information):
Additional context
Looks like there is an open vue issue and PR
The text was updated successfully, but these errors were encountered: