arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io
No errors for ESM module resolution, while errors are expected
- Langage dominant
- TypeScript
- Étoiles
- 1.6k
- Forks
- 65
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
The lib: https://www.npmjs.com/package/@microlabs/otel-cf-workers
The analysis: https://arethetypeswrong.github.io/?p=%40microlabs%2Fotel-cf-workers%401.0.0-rc.23
Shows all is ok, however, if we navigate to the lib, we'll clearly see incorrect import statement at https://github.com/evanderkoogh/otel-cf-workers/blob/v1.0.0-rc.23/src/instrumentation/env.ts#L6
I have also checked `dist` in the npm package, the same import.
It fails the build locally trying to use this lib in ESM project.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Reproduisez l’analyse pour @microlabs/otel-cf-workers@1.0.0-rc.23 et comparez-la avec l’import dans src/instrumentation/env.ts à la ligne 6 ainsi qu’avec la sortie dist correspondante. Déterminez pourquoi le problème de résolution ESM est accepté, puis vérifiez que ce package produit l’erreur attendue.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- typescript
- Domaine
- tooling
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100