-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
[Bug]: AccordionRoot TS type problems with defineComponent
usage
#885
Labels
bug
Something isn't working
Comments
Thanks for the issue @zfeher . Might be related to upstream |
Hmm we updated our vue-tsc dep to v2 at the same time as radix-vue so just in case I checked this with vue-tsc v1.8.27 as well and the error is reported with that version too (same with latest v2.0.15). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-z3u3bm?file=src%2Fcomponents%2FAccordionGlitch.vue,src%2Fcomponents%2FAccordionNoGlitch.vue,package.json&terminal=dev
Steps to reproduce
1, Open repro link, wait for it to initialize
2, Open additional terminal and run
npm run type:check
Describe the bug
AccordionGlitch
component is authored viadefineComponent
and includesAccordionRoot
incomponents
. Just this triggers a long TS type error which did not happen with radix-vue 1.4.x. (the AccordionRoot component itself works just fine, the only problem is the TS type error)Using a script setup authoring (
AccordionNoGlitch
) the TS type error doesn't occur, everything works as expected.Expected behavior
No TS type error when AccordionRoot is used with
defineComponent
components
options,Context & Screenshots (if applicable)
No response
The text was updated successfully, but these errors were encountered: