Skip to content

JS target: SyntaxError: Identifier '$2' has already been declared on Node 24Β #94

Description

@tylerbutler

First off, thanks for glint β€” it's a great library! πŸŽ‰

We're hitting a JS runtime error when using glint v1.2.1 (transitively via startest) with Gleam 1.14.0 and Node.js v24.14.0:

file:///…/build/dev/javascript/glint/glint.mjs:1932
  let $2 = $list.partition(
      ^

SyntaxError: Identifier '$2' has already been declared

The generated glint.mjs contains a duplicate let $2 binding, which Node 24 rejects. Erlang target works fine.

Environment:

  • Gleam 1.14.0
  • Node.js v24.14.0
  • glint v1.2.1

Are there plans to release an update with Gleam 1.14 compatibility? Happy to help test if useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions