arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io

No errors for ESM module resolution, while errors are expected

未关闭
#158 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
1.6k
派生
65
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

调研方向

复现对 @microlabs/otel-cf-workers@1.0.0-rc.23 的分析,并将其与 src/instrumentation/env.ts 第 6 行中的 import 以及对应的 dist 输出进行比较。追踪为何 ESM 解析问题会被接受,然后验证此 package 是否会产生预期的错误。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
tooling
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。