cschroeter / park-ui

Beautifully designed components built with Ark UI and Panda CSS that work with a variety of JS frameworks.
https://park-ui.com
MIT License
1.73k stars 74 forks source link

[CLI] Files paths are poorly matched #396

Closed abdulahd2008 closed 3 months ago

abdulahd2008 commented 3 months ago

While running cli to add components, many of the file paths are not precedded with the custom aliases (@/~), this causes undesirable issues, this happened with styled-system, I spend a over a half and hour figuring out why I am getting module found, I even installed the styled-system npm package, as I thought the CLI have missed it, than after half and hour banging my head and figuring out why it doesn't working, My eyes fell on the styled-system directory, and then preceding with the custom aliases fixed the problem, there are many other issues in the document as well, I am not here to critisize the component library, I am just reporting what other may face in future, also I love park ui

abdulahd2008 commented 3 months ago

Also these errrors in the config

abdulahd2008 commented 3 months ago

While running cli to add components, many of the file paths are not precedded with the custom aliases (@/~), this causes undesirable issues, this happened with styled-system, I spend a over a half and hour figuring out why I am getting module found, I even installed the styled-system npm package, as I thought the CLI have missed it, than after half and hour banging my head and figuring out why it doesn't working, My eyes fell on the styled-system directory, and then preceding with the custom aliases fixed the problem, there are many other issues in the document as well, I am not here to critisize the component library, I am just reporting what other may face in future, also I love park ui

Yes, have added styled-system to include array in typescript config file

cschroeter commented 3 months ago

@abdulahd2008

I've updated the CLI so that atsconfig.json is no longer required to install components. This benefits users with setups like nx workspaces that lack a tsconfig.json file.