arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io

`require(esm)` support

Ouverte
#252 3 commentaires 7 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
1.6k
Forks
65
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

i may be missing something, but it seems we don't support `require(esm)`.

this messaging suggests it is an error:

https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/161725ad2e8957f109e44fb26b13c9d70f415c2f/docs/problems/CJSResolvesToESM.md?plain=1#L3

but in node 20 and above, it is no longer an error and should work fine

not sure how we should determine this in ATTW, though. since we'd need to know what node versions you're targeting?

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Start with the linked docs/problems/CJSResolvesToESM.md guidance and compare its claim with Node 20 and later behavior. Determine which Node versions ATTW targets before deciding how require(esm) should be classified; done means the analysis and messaging match those supported targets.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
node.js, typescript
Domaine
tooling
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
30/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.