Home > Enterprise >  VS Code just renders Javascript file as Text using Live Server Extension
VS Code just renders Javascript file as Text using Live Server Extension

Time:03-17

I just started to learn and practice ReactJS. however, when I first set up ReactJS along with the npm and node.js it worked fine. But today, whenever I want to access the index.js (a sample code from my-app for React) it just outputs the text in my browser. I have tried reinstalling both VS Code and Live Server Extension and still doesn't work.

Screenshot

CodePudding user response:

Inside your project file, you just need to run:

npm i

npm start

  • Related