Skip to content

Upgrade to solid-js 2 once @opentui/solid supports it #60

Backlog

Description

@cris005

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/solid still requires solid-js ^1.9.12, as of 0.9.9, and compiles JSX through babel-preset-solid 1.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/solid publishes a release whose solid-js peer range admits 2.x
  • The OpenCode version we target ships Solid 2

What to do then

  • Remove the solid-js major-version ignore from .github/dependabot.yml
  • Bump solid-js, together with @opentui/* and @opencode/*
  • Port src/ui/sidebar.tsx, scripts/capture/picker-dialog.tsx and scripts/capture/screens.tsx to the Solid 2 API (JSX and Index imports, and the call at src/ui/sidebar.tsx:98)
  • Decide the solid-js peer range in package.json. It is >=1.9.0 today, which already admits 2.x although the sidebar is built against 1.x
  • Check that bun run build output still loads in the TUI, and regenerate the sidebar images in docs/images/

Activity

  1. added
    enhancement
    dependencies
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions