slimane
slimane

Reputation: 11

Why the live server extension is shown the React folders instead of running the code on the browser

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.

Upvotes: 1

Views: 1588

Answers (2)

Joshua Shepherd
Joshua Shepherd

Reputation: 1

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

npm start

Upvotes: 0

user303749
user303749

Reputation: 115

Try your localhost:3000 or npm start

Upvotes: 1

Related Questions