Facing Module not found issue with Recharts: Error: Package path ./helpers/interopRequireDefault?commonjs-external is not exported from package. #3509
Replies: 2 comments 12 replies
-
Hey, sorry you're experiencing this! It is probably similar to this #3448 And most likely due to our use of victory-vendor. The error you are receiving doesn't make much sense though... |
Beta Was this translation helpful? Give feedback.
-
@ckifer So I checked the above #3448 discussion. And I checked my library codebase, so I am using Recharts 2.2.0 version, and victory-vendor package is not installed on the library itself. I wasn't able to find it in the node_modules either. However, if I install the latest version of Recharts, then victory-vendor also gets added to node_modules. But on either scenario, the error I'm facing is the same as the error seen in the previously attached screenshot. Both my library & consumer applications are bootstrapped by CRA. Ejecting on either of them is not an option for me. So as suggested in the #3448 thread, I won't be able to change webpack configuration. |
Beta Was this translation helpful? Give feedback.
-
I am facing a issue with recharts library. I have a component library which I have published on github packages using Rollup as my bundler. The component library is developed in reactjs. So when I install this library on a consumer application(reactjs web app), I'm getting the error as shown in the attached screenshot. Until a month and a half ago everything was working fine. After which I published a new version and ever since that I'm facing the same issue. The version previous to this new version that I published a month and a half ago is working fine but anything published after this version throws up the same error. If I remove recharts dependency from the library and the component using recharts, I am able to consume the library with no issues. Not sure how to resolve this issue. Request recharts community help to resolve this issue.
Beta Was this translation helpful? Give feedback.
All reactions