1

image describe my problem

Hi Guys, I had this problem when I launched my React project with Live Server extension. It showed the project's folders instead of running the application. I've removed Live Server extension and reinstalled it but I've got the same issue. When I run it from the terminal with "npm run start" command it works well, please guide me because I read and test solutions being in this link link but it doesn't work.

slimane
  • 11
  • 2
  • Click on the build folder and then start the live server. If you haven't built your project. Run `npm run build` first. – Amila Senadheera Dec 12 '21 at 05:13
  • @AmilaSenadheera Thank you for your response, I do what you comment but nothing changed, still shows the directories instead to run the application. – slimane Dec 12 '21 at 19:09

2 Answers2

1

Try your localhost:3000 or npm start

user303749
  • 95
  • 8
  • 1
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jan 12 '22 at 02:17
  • If you have a new question, please ask it by clicking the [Ask Question](https://stackoverflow.com/questions/ask) button. Include a link to this question if it helps provide context. - [From Review](/review/late-answers/30793564) – Andrzej Sydor Jan 15 '22 at 13:32
0

This is because your React code needs to be compiled. You can run a live server using React with

npm start