adding typescript to a vite setup in progress

I have this project started with vite and after two moths of working with it, I finally realised that I really need typescript. the problem is I can get vite to recognise typescript.
6 Replies
needmorewood
needmorewood2y ago
make a new project with the typesctipt vite starter. then either migrate it over to that new project or take the pieces from the starter over to your project
venego
venego2y ago
I didn't think about the second option. thank you so much.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
venego
venego2y ago
just installing typescript doesn't configure the other things. for example the packes.json need to run tsc then vite. and there are two additional config files.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
venego
venego2y ago
and write some text that goes in those files. which makes it easier to just setup another project and copy those instead.
Want results from more Discord servers?
Add your server