Skip to content

couldn't run on windows #1

@dimbage

Description

@dimbage

I followed the instructions but couldn't get it to run -- the browser was empty. I asked the droid to help me figure it out.

Apparently, there was a problem in 'src/server/index.ts'

function contentTypeFor(pathname: string): string {
  if (pathname.endsWith(".html")) return "text/html; charset=utf-8";

the droid corrected it

50   function contentTypeFor(pathname: string): string {                              
         51 +   if (pathname === "/app") return "text/javascript; charset=utf-8";              
   51    52     if (pathname.endsWith(".html")) return "text/html; charset=utf-8";

After that, I had to add the correct MIME type for the /app file to the contentTypeFor function.

In general, in my case, the droid helped me and here I am reporting the error that occurred in my case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions