safak / youtube2022

Season 2 on Lama Dev
2.45k stars 2.29k forks source link

Update README.md #126

Closed marcia1997 closed 6 months ago

terrastarks commented 1 year ago

Problem with Yarn Start #128 #125 #124

If you type "yarn start" into the terminal after setting up the react-router-dom, it will not work. In the package.json file, the script section says that the server will run using the vite application (line 7), which is scaffolded with yarn. This update was likely implemented to speed up the development process. You can find additional information here. To address the issue you're having, after you've cloned the repo and created an empty folder, type the following into the terminal (I used bold text to distinguish what you should type from the instructions:

  1. Type yarn create vite ./, then press enter.
  2. Press enter for your Package name, it will be added automatically for you.
  3. Select React as your framework
  4. Select JavaScript as your variant
  5. Type yarn, then press enter
  6. Type yarn dev, then press enter

You should see the local host link available. I hope this helps! :)