-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
Not compatible with the latest 5.x release of TypeScript #125
Comments
I'm wondering why TypeScript is a peerDependency at all. Libraries shouldn't have it as a dependency if it's only used for building (and not doing anything with the actual ts compiler) |
I think it has to do with the fact that CVA is designed for TS, but there are always those who can't (or won't) use TS and still want to use CVA. |
Beat me to it. Also having the same issue 😭 |
For those cases simply publishing the type declarations is enough. There's no need for TypeScript to be a peer dependency if all you're doing is publishing types |
Hey gang! Appreciate the enthusiasm to get the ball rolling on this, but I'm in strict vacation mode right now until mid-April. I've been coding flat-out over the last year for work and during my free time – I don't get paid for my open-source work. Quickly dropping in to answer the burning question:
It's here to make sure that people using CVA with TypeScript are using a supported version (I would much rather close #127 in favour of a simple version bump to continue that trend) Rest assured this will be fixed, and I'll tackle it as soon as I'm back from vacation. In the meantime I'd be grateful for a few weeks of patience 🙏 If you need a workaround in the meantime, check out options like |
It's a bit of a 🐥 and the 🥚 problem – it is impossible to work around it with Not sure if there are any possible workarounds besides forking, downgrading TS, or using |
Shipped in I'm still supposed to be on vacation right now, so please consider supporting the project if this release is useful to you! |
I'm getting a dependency resolution error on the latest tagged version. Perhaps the project wanna release a new version.
Thanks for this amazing project.
The text was updated successfully, but these errors were encountered: