Skip to content

error: Uncaught RangeError: Maximum call stack size exceeded #5

Description

@Faeq-F

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions