developit / developit/htm

Confusing error message when not closing an element

Offen
#56 4 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
debugging enhancement proposal question
Vorherrschende Sprache
JavaScript
Sterne
9k
Forks
181
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Example code:

```js
import htm from "htm"

const e = htm`` // 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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.