arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io
Log where module failures occur
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.6k
- Forks
- 65
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Currently, when `attw` fails, the error message may look something like,
> A require call resolved to an ESM JavaScript file, which is an error in Node and some bundlers. CommonJS consumers will need to use a dynamic import. https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/CJSResolvesToESM.md.
The immediate question that comes to mind is: *where is the import causing the failure*? It would save considerable time and add clarity to the error message if the location of the incorrect module import was logged.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Empieza reproduciendo el fallo de attw y rastrea cómo se construye el error actual de resolución de módulos. Identifica dónde se puede observar la importación incorrecta del módulo; se considera terminado cuando el mensaje de error registra la ubicación de esa importación y conserva el diagnóstico existente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript
- Área
- tooling
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100