Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't preview an HTML file in a Codespace #365

Closed
joyceerhl opened this issue Oct 17, 2022 · 2 comments · Fixed by #366
Closed

Can't preview an HTML file in a Codespace #365

joyceerhl opened this issue Oct 17, 2022 · 2 comments · Fixed by #366
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@joyceerhl
Copy link

  1. Checkout Add option to set stable or insiders build vscode-dev-chrome-launcher#20 in a GitHub codespace
  2. Preview options.html
  3. 🐛 preview doesn't work
  4. See notification about application running on forwarded port
  5. 🐛 open in browser also doesn't work -- I see a 401 error
andreamah added a commit that referenced this issue Oct 18, 2022
@andreamah andreamah added the bug Issue identified by VS Code Team member as probable bug label Oct 24, 2022
@andreamah andreamah added this to the October 2022 milestone Oct 24, 2022
@andreamah
Copy link
Contributor

note to verifier:

  • Use the prerelease of the extension
  • You'll need to authorize both ports before you use live preview on codespaces (because of Improve experience when using Codespaces #111). Once you open the preview, go to the Ports panel and open the external links that are there for the http and websocket ports in your browser. This should authorize the private ports and allow you to use the extension.

@joyceerhl joyceerhl added the verified Verification succeeded label Oct 26, 2022
@tharcissentirandekura
Copy link

Also you can install http port view by running npm i -g http-server in the terminal and after installation, type http-server which will open the http port you can view the file. Then open the browser and paste the address : ex: http://172.16.5.4:8080

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants