Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#5,618 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
typescript
Área
build-system

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
TypeScript
Estrellas
6.5k
Forks
708
Merge medio
4 d 13 h
PR fusionados (30 d)
62

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de microsoft/rushstack

Todos los issues de microsoft/rushstack

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.