ATA: Unable to resolve sub module path for dual published ESM/CJS package
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- node.js, typescript
- Lĩnh vực
- developer-experience, devtools
Hướng nghiên cứu
Bắt đầu với bản tái hiện TypeScript Playground được liên kết và xác nhận rằng @sinclair/typebox được phân giải, còn @sinclair/typebox/value thì không. So sánh cấu hình package được mô tả trong báo cáo arethetypeswrong với ví dụ package-json-redirects, và coi issue là hoàn tất khi các import subpath ESM/CJS kép hợp lệ được phân giải trong Playground.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Page URL:
Example Code:
Code above
import { Type } from '@sinclair/typebox' // ok
import { Value } from '@sinclair/typebox/value' // not found
Issue:
I'm not sure if this is a critical issue, but following a recent update to support dual published ESM / CJS in TypeBox. I have noticed that the TSP is no longer able to locate the /value sub module (or any other sub module), however the top level module import continues to work fine. I have checked to ensure TS resolution of sub module paths are valid for the package via the link below, I believe everything is setup correctly.
https://arethetypeswrong.github.io/?p=%40sinclair%2Ftypebox%400.32.4
I should note that this package uses a somewhat non-typical package redirection setup to support dual publishing. The technique it uses is described at the following link / project.
Would be amazing if this could be looked at as I use the TSP almost daily to help users who have submitting issues to the TypeBox project. It would be a shame to lose the sub module imports as many type inference features exists for these sub modules, and it would be difficult to demonstrate functionality and share code via other means.
Many Thanks
- Ngôn ngữ chính
- TypeScript
- Star
- 2.6k
- Fork
- 1.5k
- Merge trung bình
- 2 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/TypeScript-Website
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
microsoft/TypeScript-Website#3607 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Documentation for tsconfig.Plugins is wrongCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
microsoft/TypeScript-Website#3039 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
More examples of `infer`Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
microsoft/TypeScript-Website#2998 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
@typescript/vfs: createVirtualTypeScriptEnvironment stores a duplicate SourceFile per file that the language service never readsCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
microsoft/TypeScript-Website#3614 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
microsoft/TypeScript-Website#3583 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/TypeScript-Website
Issue tương tự
-
Add: CanalPlusSport8SK.skĐang mởcheck:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] The shared instance selector's placeholder and no-match text ignore the display languageCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
apache/rocketmq-dashboard#5561 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CopilotKit/OpenDots#69 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
sendDefaultPii is reported as deprecated on ReactNativeOptions although dataCollection is hiddenĐang mởBug React-Native Waiting for: Product Owner
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
getsentry/sentry-react-native#6830 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
OSCI'26
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
GauravKarakoti/SecureFlow#1215 ·
Maintainer thường phản hồi trong vòng 1 ngày