Skip to content

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

@diabhoil

Description

@diabhoil

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    General Discussions

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions