stackblitz / bolt.new

Prompt, run, edit, and deploy full-stack web applications
https://bolt.new
MIT License
5.59k stars 1.35k forks source link

Import shadcn/ui does not success #434

Open tanghoong opened 1 week ago

tanghoong commented 1 week ago

Describe the bug

I using the command npm to install shadcn and even follow the tutorial, but the folders and files does not successfully create under the "./compoenents/ui/"

Even run rm -rf node_modules && rm package-lock.json and npm install to reinstall it still wont create.

https://ui.shadcn.com/docs/installation/vite

Link to the Bolt URL that caused the error

https://bolt.new/~/sb1-fuvw8d

Steps to reproduce

1.ask the bolt AI to install and use the shadcn, but failed. 2.self install by follow the https://ui.shadcn.com/docs/installation/vite tutorial in cmd, wont import

Expected behavior

after run the installation, the files and folder should be succesfully import.

Screen Recording / Screenshot

image

Platform

Additional context

No response

tanghoong commented 1 week ago

I manually fix my issue by using the command line to create the folder "./src/components/ui" and touch files that does not import success, plus those configuration the bolt AI does not able to apply itself, so please take note if others user new project not able to add "shadcn/ui" in their project.