Skip to content

Confusing error message when not closing an element #56

@DavidBruant

Description

@DavidBruant

Example code:

import htm from "htm"

const e = htm`<input>` // element is not closed

Being used to write HTML and not having to close every element (especially inputs), i can write this sort of code
With htm, i get the following error: SyntaxError: missing ) after argument list
This errors seems non-intuitive to me

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions