developit / developit/htm

Confusing error message when not closing an element

Aperta
#56 4 commenti 1 reazione 0 assegnatari Vedi su GitHub
debugging enhancement proposal question
Lingua principale
JavaScript
Stelle
9k
Fork
181
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.