I Can't Get Live Server to Work On MacBook
See original GitHub issueI’m submitting a…
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ X] Bug report <!-- Please search GitHub for a similar issue or PR before submitting -->
[ ] Feature request
[ ] Documentation issue or request
[ ] Other: <!-- Please describe: -->
Current behavior
I am new to Visual Studio Code and to writing code. VSC is working perfectly. Sadly, after installing and activating the Live Server extension I get an error when trying to start it in a browser. The error message is: Open a folder or workspace… (File -> Open Folder) All I am doing is working on HTML and CSS. If I open the HTML page in Chrome, I can update it by using cmd tab and cmd r.
I uninstalled the extension and updated the version of VSC. I then reinstalled the LS extension and get exactly the same result.
Expected behavior
The VSC HTML page I’m working on would open in Chrome and instantly update as I make changes.
Environment
Browser:
- [X ] Chrome (desktop) Version 69.0.3497.81 (Official Build) (64-bit)
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] IE version XX
- [ ] Edge version XX
For Tooling issues:
- Live Server: 5.1.1
- Platform: Mac OS High Sierra version: 10.13.6
- Visual Studio Code: Version 1.27.1 (1.27.1)
Others
I tried installing another extension: Live Server Preview 0.1.2 and couldn’t get this to work either. I have also searched YouTube and GIT for a solution but had no luck.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8
Top GitHub Comments
The extension won’t work if you only have a file open. Use ‘File -> Open Folder’ in VSCode to open the directory your files are in. Then open the respective HTML file. You can start Live Server now and it should work.
You are quite correct. IT WORKS!! Thank you for providing this simple yet effective solution.