fasthtml
fasthtml copied to clipboard
[BUG] Hello World app gives javascript syntax error
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