Open nstuyvesant opened 9 months ago
Hello @nstuyvesant! Once you build the package, those files are going to show up. Just in case, you would like to know how to build the package, I will put the documentation here! (https://github.com/carbon-design-system/carbon/blob/main/.github/CONTRIBUTING.md)
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! I apologize that I completely misunderstood the issue that you reported. Yes, you are right. this path resolution is not correctly done. I am going to take a look at the issue again. I will reply to you back ASAP. Thank you so much!
@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 Accordion
folder.
We'd appreciate some help looking into why this is happening if someone is interested!
Hello @tay1orjones, I am searching this build behavior is coming from. I assume this is because of Tree-Shaking from the roll-up library but I am not sure. For sure I will take a look at this more. Related to this, I would like to ask you why we have the "AccordionItem" folder in the react/src/component. Thank you so much! 😄
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/react@1.46.0/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