Create a React App with Vite and TypeScript on Windows
This assumes that you already have the latest node installed, i had some issues as i had an old version installed and had to manually delete it.
You can check the version of node by typing node -v in terminal. For some reason i had an ancient version of 11 or something, it must have been installed with something else.
In Powershell
- WIN + X
- Terminal Admin
cd to your code directory, that you want the react and vite site
Im using D:\code\react
d:
cd "d:\code\react"
For some reason i have to use npm.cmd as npm does not work by its self on windows for me..
npm.cmd create vite@latest
select React from the list
then select TypeScript from the list
Now if you are using VSCode type in
code .
In VSCode open a terminal window
and type the following
npm run dev
This should launch the new application in the terminal.
Now you can load the provided url in your browser to see the default app.
Browser View
Now i just have to figure out how to use it! :)
Following this tutorial so far: https://www.youtube.com/watch?v=SqcY0GlETPk