Replies: 1 comment 1 reply
-
could you put together an minimum example repo which reproduces the issue? or could you show what the built/dist version of the button looks like after it's been run through vite? you could probably turn off minify to see it more easily. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm migrating my React UI component library to use React Aria Components, I have migrated the Button component and the migration process went smoothly and the component works as expected within the library itself.
button component:
I am building my library using Vite,
my library vite config:
the published library structure:
However, when I publish my library to NPM and attempt to consume it in any other project, TypeScript throws an error related to the component's props.
This error occurs when trying to use the Button component as follows:
also, I get the same error on all the props of the component, for example, if I used
isDisabled
I would get the same error:I do not think the issue is with the build steps or vite itself because before I migrated the Button component to RAC it was working fine without any issues this was my old button component props:
could anyone help me resolve this issue?
Any help on this issue would be greatly appreciated.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions