Skip to content

[code] support live preview of local files #3831

Open
@kevinadhiguna

Description

@kevinadhiguna

Bug description

Unable to see HTML file and faced a HTTP 400 Bad Request issue. Instead, I saw a text saying : Web Sockets Request was expected.

Steps to reproduce

  1. Create index.html and index.ts file.

index.html :
image

index.ts :
image

  1. Compile index.ts with yarn tsc index.ts and produce an index.js file.

index.js :
image

  1. Create an <h1>Hello</h1> and connect it to index.js.
  2. Open a new tab to access <PORT>-<Gitpod Workspace URL>.
  3. See a text saying : Web Sockets Request was expected.

image

Expected behavior

Display an HTML file and run Javascript in console.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions