-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
errors when run a simple file
486 | // This allows certain concepts to persist without recalculating them,
487 | // e.g. whether a subtree contains passive effects or portals.
488 |
489 | var StaticMask = LayoutStatic | PassiveStatic | RefStatic;
490 |
491 | var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
^
TypeError: undefined is not an object (evaluating 'ReactSharedInternals.ReactCurrentOwner')
at $$$reconciler (/Users/mac/sgz-cli/node_modules/ink-divider/node_modules/ink/node_modules/react-reconciler/cjs/react-reconciler.development.js:491:25)
at /Users/mac/sgz-cli/node_modules/ink-divider/node_modules/ink/build/reconciler.js:61:16
Bun v1.3.1 (macOS arm64)To Reproduce
import { render } from "ink";
import Divider from "ink-divider";
/**
* Component that renders a divider with custom settings.
* Demonstrates the usage of `title`, `dividerChar`, `dividerColor`, and `width` props.
*/
const Advanced = () => (
<Divider
title="Title" // Title of the divider.
dividerChar="=" // Character used for the divider line (instead of '-').
dividerColor="red" // Color of the divider (red).
width={40} // Width of the divider line.
/>
);
render(<Advanced />);then run
bun test-ui.tsxExpected behavior
no errors
Screenshots
Additional context
macos 26
{
"name": "sgz-cli",
"module": "index.tsx",
"type": "module",
"private": true,
"scripts": {
"start": "bun run index.tsx",
"dev": "bun run --watch index.tsx",
"ui": "bun --hot test-ui.tsx"
},
"devDependencies": {
"@types/bun": "latest",
"@types/react": "^19.2.2"
},
"peerDependencies": {
"typescript": "^5"
},
"dependencies": {
"chalk": "^5.6.2",
"ink": "^6.4.0",
"ink-big-text": "^2.0.0",
"ink-divider": "^4.1.1",
"ink-gradient": "^3.0.0",
"ink-spinner": "^5.0.0",
"react": "^19.2.0",
"zustand": "^5.0.8"
}
}Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working