Skip to content

[api-extractor] building with TS 5.6.2 causes error on wildcard import #4919

@wmertens

Description

@wmertens

Summary

Trying to upgrade TS from 5.4.5 to 5.6.2

Somehow this causes api extractor to fail. I tried with the latest version as well as an older version.

Repro steps

  • upgrade qwik to latest tsc
  • pnpm api.update
❌ Error: Internal Error: getResolvedModule() could not resolve module name "./render/jsx/types/jsx-generated"
/home/wmertens/Projects/qwik/dist-dev/dts-out/packages/qwik/src/core/index.d.ts:16:1

You have encountered a software defect. Please consider reporting the issue to the maintainers of this application.
    at ExportAnalyzer._fetchSpecifierAstModule (/home/wmertens/Projects/qwik/node_modules/.pnpm/@microsoft+api-extractor@7.47.8_@types+node@22.5.4/node_modules/@microsoft/api-extractor/src/analyzer/ExportAnalyzer.ts:924:13)
    at ExportAnalyzer.fetchAstModuleFromSourceFile (/home/wmertens/Projects/qwik/node_modules/.pnpm/@microsoft+api-extractor@7.47.8_@types+node@22.5.4/node_modules/@microsoft/api-extractor/src/analyzer/ExportAnalyzer.ts:159:72)
    at AstSymbolTable.fetchAstModuleFromWorkingPackage (/home/wmertens/Projects/qwik/node_modules/.pnpm/@microsoft+api-extractor@7.47.8_@types+node@22.5.4/node_modules/@microsoft/api-extractor/src/analyzer/AstSymbolTable.ts:121:33)
    at Collector.analyze (/home/wmertens/Projects/qwik/node_modules/.pnpm/@microsoft+api-extractor@7.47.8_@types+node@22.5.4/node_modules/@microsoft/api-extractor/src/collector/Collector.ts:294:27)
    at Function.invoke (/home/wmertens/Projects/qwik/node_modules/.pnpm/@microsoft+api-extractor@7.47.8_@types+node@22.5.4/node_modules/@microsoft/api-extractor/src/api/Extractor.ts:261:15)
    at createTypesApi (/home/wmertens/Projects/qwik/scripts/api.ts:214:28)
    at apiExtractorQwik (/home/wmertens/Projects/qwik/scripts/api.ts:14:3)
    at build (/home/wmertens/Projects/qwik/scripts/build.ts:93:13)
 Error: Error: Internal Error: getResolvedModule() could not resolve module name "./render/jsx/types/jsx-generated"
/home/wmertens/Projects/qwik/dist-dev/dts-out/packages/qwik/src/core/index.d.ts:16:1

See https://github.com/QwikDev/qwik/actions/runs/10813753964/job/29998536883?pr=6874#step:6:536

Details

It's failing on

export type * from './render/jsx/types/jsx-generated';

But there's nothing special in the file it imports

Standard questions

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

Question Answer
@microsoft/api-extractor version? 7.47.8
Operating system? Linux
API Extractor scenario? reporting + docs -->
Would you consider contributing a PR? Yes but need help
TypeScript compiler version? 5.6.2
Node.js version (node -v)? 20.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions