Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[heft] heft-typescript-plugin - error with an array at the extends property

Đang mở
#5,618 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

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:

Image

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

  1. Create a SPFx project
  2. 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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/rushstack

Tất cả issue của microsoft/rushstack

Issue tương tự

Thêm issue về TypeScript

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.