developit / developit/htm

Confusing error message when not closing an element

オープン
#56 コメント 4 件 リアクション 1 件 担当者 0 名 GitHub で見る
debugging enhancement proposal question
主要言語
JavaScript
スター
9k
フォーク
181
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。