Hello guys and tech enthusiasts,
Recently I setup React with Vite. But I could only run it once the setup was over, and after I restart my vscode now I cannot run it, I dont know which port it works and besides it, I create a new component file inside src folder and imported it inside App file but no result on the browser. So please guys just help me on how to start my own project once I setup react with vite and delete the default code inside App.jsx, what must be the next step? And what is the main file I should run in order to get the result on browser, I am completely new with vite.
For further actions, you may consider blocking this person and/or reporting abuse
Latest comments (6)
Please kill your node process from terminal and start your project. You can access it using localhost:5173
You can use this Vite project for reference:
github.com/indrasisdatta/react-vit...
Hi!
By default Vite server run on PORT 5173.
What happened if you run
npm run dev
oryarn dev
orpnpm dev
?You have probably close VSCode without closing the server. So your server is still running.
You can try restarting your computer.
even I run it for the first time, I tried to crete a new component file inside src folder and import it in App.ksx file it was not rendering bro,,, Can you help me to fix it please
@thiago-coderr Did you solve the problem?
ohh yeah I'm sorry bro, it's done already
Can you show me your App.jsx?