dan5py / turborepo-shadcn-ui

Turborepo starter with shadcn/ui pre-configured.
MIT License
466 stars 89 forks source link

npm ui:add <component> -- command runs into error. Issue with generateIndex.mts script #16

Closed webstar-code closed 8 months ago

webstar-code commented 8 months ago

image

I tried adding another component, the component was added successfully, but then it ran into error while running this script. Event though the new alert component is added, when using it in the app, i cannot see the component

image

dan5py commented 8 months ago

Hi @webstar-code, I removed the generateIndex script in the 1.0.3 release (https://github.com/dan5py/turborepo-shadcn-ui/commit/9f51459b973ac9016df23d09bf67088eb98c041c). You can delete the the postui:add script in the package.json of the ui package, and the error should disappear. I also suggest you to update the other files since I made some changes.