microsoft / Web-Dev-For-Beginners

24 Lessons, 12 Weeks, Get Started as a Web Developer
https://microsoft.github.io/Web-Dev-For-Beginners/
MIT License
82.14k stars 12.25k forks source link

console showing error #1244

Open cynica123 opened 6 months ago

cynica123 commented 6 months ago

Describe the bug Chrome is not live updating every time code is written in vs.code. writing code on a file using ".js" is not appearing or executing whereas files using ".html" are updating only after closing and reloading

To Reproduce Steps to reproduce the behaviour:

  1. Go to 'Vs.code'
  2. Create 'new file using .js'
  3. write "console.log('hello world')"
  4. right click and select open with live server
  5. right click again and click on inspect
  6. find console and error showing Live reload enabled

Expected behavior

The console should simply show "Hello world"

Desktop (please complete the following information):

Additional context I have just started learning coding and have no clue what I am doing or even know how to use GitHub at all so i hope this reaches someone who can help. sorry for uploading this request somewhere wrong.

Jdoggett50 commented 5 months ago

How are you linking your .js file to your html? A photo of the specific issue would be helpful!

github-actions[bot] commented 3 months ago

This issue has not seen any action for a while! Closing for now, but it can be reopened at a later date.

Rax-shiftware commented 3 months ago

You can't write js to html! JSX file `jsx function App() { return ( <>

</> ) } `