Introduction
At the end of this article, you will create your own custom React Component Library, and publish it to npm which will let o...
For further actions, you may consider blocking this person and/or reporting abuse
In my company we do have a set of components we share amongst multiple projects and we use TurboRepo monorepo for that. We thought about creating another repo but mono ended up being a much better option.
Nice article, I am getting issue with the command
npm run rollup-build-lib
throws below errorDo you have any idea
github.com/rollup/rollup/issues/3594
One answer might be to try and check if your node is updated or not.
I have removed this line
import packageJson from "./package.json" assert { type: "json" };
and provided
cjs
andesm
path directly in the file field, just to make it work.Just curious to know is this good pratice?
Its different issue, may i know your node version ?
Hi Hidayat while I did not fully understand how you got that error, I am grateful you brought it up as I tried to test my article today by creating a new Component Library and I noticed that I had made 2-3 typo's which when I removed, resulted in correct compilation of the library.
rollup-lib -c
should have beenrollup -c
, corrected nowMy current node version is 18.14.2 LTS and I think if you try it once again it will work. Thank you for your comment once again and hit me back if that doesn't work.
No worry, issue has been resolved same day
Thank you very much for this tutorial! I tried to create cra-template with your configurations, maybe it will be convenient for someone github.com/rebase-agency/cra-templ...
Wow.... it was a really great read. I really needed this.👍🤩
Much needed one ❤️ Just built this UI library for my company following this article: npmjs.com/package/@teamartizen/rea...
pure gold. many thanks!