arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io

No errors for ESM module resolution, while errors are expected

Đang mở
#158 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
1.6k
Fork
65
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Tái hiện phân tích cho @microlabs/otel-cf-workers@1.0.0-rc.23 và so sánh với import trong src/instrumentation/env.ts ở dòng 6 cùng output dist tương ứng. Truy tìm lý do vấn đề phân giải ESM được chấp nhận, sau đó xác minh rằng package này tạo ra lỗi mong đợi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
typescript
Lĩnh vực
tooling
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.