Skip to content

[api-extractor] Upgrade API Extractor's compiler to 5.9.2 #5319

@ncardeli

Description

@ncardeli

Summary

I'm bundling a set of d.ts files and getting the following error:

Symbol not found for identifier: ...

I found this old issue where the same problem was caused by a version mismatch: #1370

I also get this message in the console:

Analysis will use the bundled TypeScript version 5.8.2
*** The target project appears to use TypeScript 5.9.2 which is newer than the bundled compiler engine; consider upgrading API Extractor.

I tried using typescriptCompilerFolder pointing to my compiler directory with no luck.

As specified in the docs, since my toolchain uses TS 5.9.2 and the latest version of api-extractor uses 5.8.2, I'm requesting if you can upgrade to TS 5.9.2 because I believe the error I'm getting is related to this version mismatch.

Repro steps

Not sure, but maybe having a Symbol exported in a TS file compiled with the newer compiler version is what's causing the issue.

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@microsoft/api-extractor version? 7.52.11
Operating system? Mac
API Extractor scenario? d.ts
Would you consider contributing a PR? Yes
TypeScript compiler version? Mine? 5.9.2
Node.js version (node -v)? 22.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions