Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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

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. Kindly refer to the attached screenshot for the output that appears.

Screenshot

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Inside your project file, you just need to run:

npm i

npm start

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading