[heft] heft-typescript-plugin - error with an array at the extends property
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- typescript
- Lĩnh vực
- build-system
Hướng nghiên cứu
Start with heft-plugins/heft-typescript-plugin/src/schemas/typescript.schema.json and compare its extends definition with the TypeScript tsconfig schema linked in the issue. Reproduce the failure using a Heft TypeScript project with an extends array, then update the schema so the documented configuration is accepted and confirm the project builds successfully.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
I am trying to extend my tsconfig.json with a rig config and a custom config from a multi project repo. So my tsconfig.json looks something like this:
{
"extends": [
"./node_modules/@microsoft/spfx-web-build-rig/profiles/default/tsconfig-base.json",
"../../tsconfig.base.json"
]
}
When I am trying to build the project, this fails somewhere in the heft-typescript-plugin:
The schema for TypeScript allows this syntax. The schema in the heft-typescript-plugin does not.
Repro steps
I am working with a SPFx setup which is using heft since version 1.22.
So the easiest way would be to
- Create a SPFx project
- Change the tsconfig to include an array
But a simple heft typescript project should work too.
Details
What do you think is the cause of this problem? see above
How do you think we should fix this? extend the schema for allowing arrays
Standard questions
Please answer these questions to help us investigate your issue more quickly:
| Question | Answer |
|---|---|
@rushstack/heft version? |
1.1.2 |
| Operating system? | windows / linux (wsl) |
| Would you consider contributing a PR? | Maybe |
Node.js version (node -v)? |
22.17.0 |
- Ngôn ngữ chính
- TypeScript
- Star
- 6.5k
- Fork
- 708
- Merge trung bình
- 4 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 62
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
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/rushstack
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Tất cả issue của microsoft/rushstack
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
receptron/mulmoterminal#2264 ·
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
components-web-app/docs#96 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
simonsobs/tileviewer#114 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100