openapi-typescript doesn't work with Typescript 7
Author: yzhe554Created Jul 9, 2026Updated Sep 11, 2026
Labelsbugopenapi-ts
openapi-typescript version
7.13.0
Node.js version
24.18.0
OS + version
macOS 26.5.1
Description
openapi-typescript doesn't work when I try to use typescript 7.0.2
const BOOLEAN = ts.factory.createKeywordTypeNode(ts.SyntaxKind.BooleanKeyword);
^
TypeError: Cannot read properties of undefined (reading 'createKeywordTypeNode')Reproduction
N/A
Expected result
It can generate types from openapi json schema
Required
- My OpenAPI schema is valid and passes the Redocly validator (
npx @redocly/cli@latest lint)
Extra
- I’m willing to open a PR (see CONTRIBUTING.md)
Source: openapi-ts/openapi-typescript