Web-Dev-For-Beginners icon indicating copy to clipboard operation
Web-Dev-For-Beginners copied to clipboard

console showing error

Open cynica123 opened this issue 2 years ago • 3 comments

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):

  • OS: Mac M1 pro
  • Browser [chrome,]
  • Version 120.0.6099.199

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.

cynica123 avatar Jan 06 '24 13:01 cynica123

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

Jdoggett50 avatar Jan 22 '24 14:01 Jdoggett50

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

github-actions[bot] avatar Mar 23 '24 08:03 github-actions[bot]

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

</> ) } `

Rax-shiftware avatar Mar 28 '24 04:03 Rax-shiftware