-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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]: Issues with types for @carbon/react (ESM) #15420
Comments
Hello @nstuyvesant! So, I think you can close this issue! thank you! ❤️ |
Hi @kuri-sun - I am building a website that has @carbon/react as a dependency. When I examine what was installed by yarn in my node_modules/@carbon/react/es directory, what I found was there. Are you saying I have to not only install @carbon/react in my project as a dependency but also separately create a build of it? |
Hi @nstuyvesant! Thanks for the reply! |
@kuri-sun - thanks for the follow up. |
Yeah it looks like the pathing for these is incorrect. That file is a generated one. The build process is probably using some type of inference to generate the paths and it's incorrect for some components. The list looks like a good bunch of edge cases to look into. For AccordionItem for example, this is a subcomponent that actually lives within the We'd appreciate some help looking into why this is happening if someone is interested! |
Hello @tay1orjones, |
Package
@carbon/react
Browser
Safari
Package version
1.46.0
React version
18.2.0
Description
The file @carbon/react/es/index.d.ts has a large number of exports that refer to files that DO NOT EXIST...
Also, it should have proper exports in the package.json for the types.
Reproduction/example
https://unpkg.com/@carbon/[email protected]/es/index.d.ts
Steps to reproduce
Suggested Severity
Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.
Application/PAL
@carbon/charts
Code of Conduct
The text was updated successfully, but these errors were encountered: