Repository navigation
Backlog
Labels
Description
solid-js 2.x is now the latest tag on npm (1.x moved to v1-latest). We can't take it yet, so Dependabot is told to skip solid-js major updates until this issue is done.
Why it is blocked
@opentui/solidstill requiressolid-js ^1.9.12, as of 0.9.9, and compiles JSX throughbabel-preset-solid1.9.16, which requires^1.9.16.- The plugin doesn't ship
solid-js. It is a peer dependency that the OpenCode host provides at runtime, so the host has to be on Solid 2 as well.
What breaks today
Dependabot proposed 2.0.3 in #59. bun run typecheck on that branch fails with:
scripts/capture/picker-dialog.tsx(3,20): error TS2305: Module '"solid-js"' has no exported member 'JSX'.
scripts/capture/screens.tsx(5,15): error TS2305: Module '"solid-js"' has no exported member 'JSX'.
src/ui/sidebar.tsx(4,38): error TS2305: Module '"solid-js"' has no exported member 'Index'.
src/ui/sidebar.tsx(4,50): error TS2305: Module '"solid-js"' has no exported member 'JSX'.
src/ui/sidebar.tsx(54,11): error TS7006: Parameter 'line' implicitly has an 'any' type.
src/ui/sidebar.tsx(98,3): error TS2554: Expected 2-3 arguments, but got 1.
bun run lint fails first in CI, with 40 type-aware errors that follow from the same missing exports.
When to pick this up
-
@opentui/solidpublishes a release whosesolid-jspeer range admits 2.x - The OpenCode version we target ships Solid 2
What to do then
- Remove the
solid-jsmajor-versionignorefrom.github/dependabot.yml - Bump
solid-js, together with@opentui/*and@opencode/* - Port
src/ui/sidebar.tsx,scripts/capture/picker-dialog.tsxandscripts/capture/screens.tsxto the Solid 2 API (JSXandIndeximports, and the call atsrc/ui/sidebar.tsx:98) - Decide the
solid-jspeer range inpackage.json. It is>=1.9.0today, which already admits 2.x although the sidebar is built against 1.x - Check that
bun run buildoutput still loads in the TUI, and regenerate the sidebar images indocs/images/
Activity