mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[GH-ISSUE #205] Missing exports in published @opentui/core@0.1.25 package #817
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#817
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thefinalb055 on GitHub (Oct 8, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/205
Summary
The published npm package
@opentui/core@0.1.25is missing several critical renderables that are present in the source code, causing runtime errors when using the package outside of the monorepo workspace.Missing Exports
The following renderables are missing from the published package:
CodeRenderable- Completely missing (no.d.tsfile exists)SliderRenderable- Type definitions exist but not exported fromrenderables/index.d.tsTextBufferRenderable- Referenced in source but missing from published packageError
When running code that imports these missing renderables:
Steps to Reproduce
npm install @opentui/core@0.1.25Detailed Reproduction Steps
Starting from the OpenTUI monorepo:
packages/soliddirectory to a standalone locationpackage.jsonto change@opentui/corefrom workspace dependency to published version:bun installto get the published package from npmExpected Behavior
All renderables that exist in the source code should be:
Actual Behavior
In the source code (git history):
In the published package:
Files in published package:
Impact
This breaks any code outside the monorepo that tries to use:
CodeRenderableandCodeOptions(for syntax-highlighted code display)SliderRenderableandSliderOptions(for slider components)TextBufferRenderable(for text buffer rendering)The
@opentui/solidpackage directly imports these:Environment
@opentui/core@0.1.25Possible Cause
This appears to be a build configuration issue where:
Suggested Fix
Code.ts,Slider.ts, andTextBufferRenderable.tsare built and included in the packagepackages/core/src/renderables/index.tsto export all renderables:Workaround
Currently, the only workaround is to use the workspace version from the monorepo, which is not viable for external projects.
Related Files
packages/core/src/renderables/index.tspackages/solid/src/elements/index.tspackages/solid/src/types/elements.ts@kommander commented on GitHub (Oct 8, 2025):
The
CodeRenderableis not in0.1.25yet, it came in after. You can use a snapshot release from https://www.npmjs.com/package/@opentui/core?activeTab=versions, like 0.0.0-20251006-283f60d7 that should include it.@kommander commented on GitHub (Oct 8, 2025):
Should be available with version
0.1.26now.