developit / developit/htm

Confusing error message when not closing an element

Open
#56 4 comments 1 reaction 0 assignees View on GitHub
debugging enhancement proposal question
Dominant language
JavaScript
Stars
9k
Forks
181
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.