Confusing error message when not closing an element
Abierto
debugging
enhancement
proposal
question
- Lenguaje dominante
- JavaScript
- Estrellas
- 9k
- Forks
- 181
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
Guía de contribución
Línea de trabajo
Start with the provided htm tagged-template example and reproduce the `SyntaxError: missing ) after argument list` result. Trace the parser or error-reporting entry point that handles an unclosed input element, then verify that the resulting diagnostic clearly explains the missing closing element.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100