You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Shadcn-Vue in a project that is not using TypeScript, I've run through the vite installation and got components working but I've noticed certain components have .ts files in them despite the non-TS specified configuration (components.json has typescript: false). I'm even using some of these components without any issue like the Table component - my questions are (1) Why are TypeScript files being installed when I told the CLI to use only JavaScript and (2) is there a way to install the JavaScript version of components? Thanks for any help!
Edit:
So I just set up a brand new project and ran through the same options and installed all the components I could that wouldn't error out (carousel, chart and sidebar wouldn't install) and noticed that all the components were JavaScript. It seems like maybe upgrading to the latest shadcn and then installing new components somehow switched over to TypeScript? Is that a known issue? I'm tempted to just delete the TS components and copy and paste the JS components as a quick solution but that doesn't explain how these TS components got into my project and how to avoid resolve the issue with my project moving forward. Thanks so much if anyone can help me get to the root of the problem!
The text was updated successfully, but these errors were encountered:
I've just setup a new project. When i install the sidebar component i also get typescript files instead of js. typescript is set to fale in components.json and other components work fine.
I am using Shadcn-Vue in a project that is not using TypeScript, I've run through the vite installation and got components working but I've noticed certain components have .ts files in them despite the non-TS specified configuration (
components.json
hastypescript: false
). I'm even using some of these components without any issue like theTable
component - my questions are (1) Why are TypeScript files being installed when I told the CLI to use only JavaScript and (2) is there a way to install the JavaScript version of components? Thanks for any help!Edit:
So I just set up a brand new project and ran through the same options and installed all the components I could that wouldn't error out (carousel, chart and sidebar wouldn't install) and noticed that all the components were JavaScript. It seems like maybe upgrading to the latest shadcn and then installing new components somehow switched over to TypeScript? Is that a known issue? I'm tempted to just delete the TS components and copy and paste the JS components as a quick solution but that doesn't explain how these TS components got into my project and how to avoid resolve the issue with my project moving forward. Thanks so much if anyone can help me get to the root of the problem!
The text was updated successfully, but these errors were encountered: