Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

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

Offen
#5,618 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
55/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Veraltet
Tech-Stack
typescript
Bereich
build-system

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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
Vorherrschende Sprache
TypeScript
Sterne
6.5k
Forks
708
Ø Merge
4 T. 13 Std.
Gemergte PRs (30 T.)
62

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus microsoft/rushstack

Alle Issues in microsoft/rushstack

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.