console showing error
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:
- Go to 'Vs.code'
- Create 'new file using
.js' - write "console.log('hello world')"
- right click and select open with live server
- right click again and click on inspect
- 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.
How are you linking your .js file to your html? A photo of the specific issue would be helpful!
This issue has not seen any action for a while! Closing for now, but it can be reopened at a later date.
You can't write js to html! JSX file `jsx function App() { return ( <>
</> ) } `