Creating shadcn svelte block #545
-
When I setup a new svelte project and install the shadcn svelte button and then try to build jsrepo I get this error: ERROR components/ui depends on local dependency utils.js/index which doesn't exist require-local-dependency-exists The file exists and I have tried a bunch of settings inside the build.json but nothing worked. I can see that in shadcn-svelte-extras you setup the utils.ts inside of the utils folder. When I do that it works fine for me. Thanks for creating jsrepo it looks awesome. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @simonhackler I normally reconfigure my components.json to have the utils.ts in the folder. It doesn't HAVE to be in the folder it just makes it a bit easier. jsrepo expects every block to be contained in a category in this case if you are at the root of lib it would be |
Beta Was this translation helpful? Give feedback.
-
When I get back from lunch I can work on a shadcn example cause it's a fairly common use case. In the mean time I would continue to reference shadcn-svelte-extras |
Beta Was this translation helpful? Give feedback.
Hey @simonhackler I normally reconfigure my components.json to have the utils.ts in the folder. It doesn't HAVE to be in the folder it just makes it a bit easier.
jsrepo expects every block to be contained in a category in this case if you are at the root of lib it would be
lib/utils
but for me I just like it to beutils/utils