Closed doutatsu closed 7 months ago
I provided the reproduction link, but it's not really possible to "reproduce it", as it fails simply trying to run the init script (which can be seen failing in the reproduction link as well)
@doutatsu Hi you need to create jsconfig.json
first, it is required, make an empty jsconfig
if you don't want to use path aliases, then in CLI you need to choose path like this
@/components
:x:./components
✅ {
}
@sadeghbarati In that case, it'll be great to have it mentioned somewhere in the documentation. Simply following the installation instructions, anyone could hit this issue and not be quite sure what to do
Right🙏 I'll work on it
It's now documented on top of Vite installation steps
If you're using the JS template,
jsconfig.json
must exist for the CLI to run without errors.
pls add this to the nuxt install steps too..better still, would be nice to have it created automatically.
Reproduction
https://stackblitz.com/edit/vitejs-vite-npx4kc
Describe the bug
I've followed regular instructions for Vue + Vite, without Typescript, but I get an error
ENOENT: no such file or directory, stat 'jsconfig.json'
, which I don't see mentioned in the documentation.Looking into it, it seems to be VSCode configuration, yet it's not required anymore from my understanding. If this is a hard requirement for Shadcn-Vue, I think it should be explained in the documentation. Otherwise, it would be great to remove a check for this configuration file
System Info
Contributes