fasthtml icon indicating copy to clipboard operation
fasthtml copied to clipboard

[BUG] Hello World app gives javascript syntax error

Open leifmetcalf opened this issue 5 months ago • 0 comments

Describe the bug The hello world app from the quickstart gives this error:

Uncaught SyntaxError: export declarations may only appear at top level of a module fasthtml.js:1:1

No functionality I can tell is affected.

Minimal Reproducible Example

from fasthtml.common import *

app, rt = fast_app()

@rt("/")
def get():
    return Titled("FastHTML", P("Let's do this!"))

serve()

Environment Information Please provide the following version information:

  • fastlite version: 0.0.11
  • fastcore version: 1.7.8
  • fasthtml version: 0.6.1

leifmetcalf avatar Sep 16 '24 20:09 leifmetcalf