-
Notifications
You must be signed in to change notification settings - Fork 308
Open
Description
Summary
TypeScript NodeNext module resolution can’t resolve OpenTUI’s extensionless re-exports from its declaration files, which hides exported APIs like createCliRenderer and createRoot.
Details
- @opentui/core
index.d.tscontainsexport * from "./renderer" - @opentui/react
src/index.d.tscontainsexport * from "./reconciler/renderer"
With TS 5.9 and moduleResolution: "NodeNext", tsc --traceResolution reports “Module name './renderer' was not resolved” even though renderer.d.ts exists. This results in TS2305 (“no exported member”).
Repro
// tsconfig.json
{
"compilerOptions": {
"module": "NodeNext",
"moduleResolution": "NodeNext"
}
}import { createCliRenderer } from '@opentui/core'
import { createRoot } from '@opentui/react'Workaround
Use moduleResolution: "Bundler" in the consumer tsconfig so TS accepts extensionless re-exports.
Request
Consider adding explicit extensions in declaration re-exports (e.g. ./renderer.js / ./reconciler/renderer.js) or adjusting the package exports so NodeNext resolution works without the Bundler override.
Opened on behalf of @schickling via Codex CLI.
s-peteymsmps
Metadata
Metadata
Assignees
Labels
No labels