demo-ui-library icon indicating copy to clipboard operation
demo-ui-library copied to clipboard

When i install the npm package on a react app, the components do not get imported

Open Timonwa opened this issue 2 years ago • 4 comments

The components are there. And I can view them in Storybook. But when I import the package locally on my system into a React page or install it from npm, the app doesn't seem to find the components.

Timonwa avatar Oct 07 '23 20:10 Timonwa

Can I work on this issue?

VishalMyla avatar Oct 08 '23 00:10 VishalMyla

Yes @VishalMyla , you can go ahead to work on it. Thank you. And please give it a star if you can.

Timonwa avatar Oct 08 '23 05:10 Timonwa

I managed to resolve the issue by replacing all occurrences of

export * from "./components";

with

import { Button } from "./components";
export { Button };

Does this make sense? Also, thanks for the library!

DavidRGz avatar Oct 24 '23 16:10 DavidRGz

Hi @DavidRGz, I hope it works. Let me try it out

Timonwa avatar Oct 29 '23 19:10 Timonwa