Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#5,618 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
typescript
Domain
build-system

Research direction

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.

Written by the indexing model from the issue text.

Description

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
Dominant language
TypeScript
Stars
6.5k
Forks
708
Avg merge
4d 13h
Merged PRs (30d)
62

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/rushstack

All issues in microsoft/rushstack

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.