I'm trying to create a new project using glen. I am using the following code:
pub fn main() {
glen.serve(8000, fn(_req) {
"<h1>Welcome to my webpage!</h1>
<p>Make yourself at home 😄</p>"
|> glen.html(status.ok)
|> promise.resolve
})
}
with the following gleam.toml:
name = "app"
version = "1.0.0"
target = "javascript"
[javascript]
runtime = "deno"
[dependencies]
gleam_stdlib = ">= 0.34.0 and < 2.0.0"
glen = ">= 2.2.0 and < 3.0.0"
gleam_http = ">= 3.6.0 and < 4.0.0"
gleam_javascript = ">= 0.11.0 and < 1.0.0"
repeatedly = ">= 2.1.1 and < 3.0.0"
[dev-dependencies]
gleeunit = ">= 1.0.0 and < 2.0.0"
when I do gleam run I get
Compiled in 0.05s
Running app.main
error: Uncaught RangeError: Maximum call stack size exceeded
If I downgrade glen, I still get this error. I don't know if I am missing something basic
I'm trying to create a new project using glen. I am using the following code:
with the following gleam.toml:
when I do
gleam runI getIf I downgrade glen, I still get this error. I don't know if I am missing something basic