[heft] heft-typescript-plugin - error with an array at the extends property
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:
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 |
- 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
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus microsoft/rushstack
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
Alle Issues in microsoft/rushstack
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
receptron/mulmoterminal#2264 ·
-
documentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
components-web-app/docs#96 ·
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
simonsobs/tileviewer#114 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100