[GH-ISSUE #122] Solidjs bun build fails #28

Closed
opened 2026-03-02 23:43:59 +03:00 by kerem · 2 comments
Owner

Originally created by @aminroosta on GitHub (Sep 1, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/122

Originally assigned to: @Adictya, @fezproof on GitHub.

bun compile fails with "@opentui/solid": "^0.1.13".

bun build --compile src/index.tsx
$ bun build --compile src/index.tsx
8 | export { Fragment, jsx, jsxs } from "solid-js/jsx-runtime"
             ^
error: No matching export in "node_modules/solid-js/dist/solid.js" for import "Fragment"
    at /Users/user/dev/awss/src/ui/header.tsx:8:10
8 | export { Fragment, jsx, jsxs } from "solid-js/jsx-runtime"
error: No matching export in "node_modules/solid-js/dist/solid.js" for import "jsx"
    at /Users/user/dev/awss/src/ui/header.tsx:8:20
8 | export { Fragment, jsx, jsxs } from "solid-js/jsx-runtime"
error: No matching export in "node_modules/solid-js/dist/solid.js" for import "jsxs"
    at /Users/user/dev/awss/src/ui/header.tsx:8:25
error: No matching export in "node_modules/@opentui/solid/jsx-runtime.d.ts" for import "jsxDEV"
    at /Users/user/dev/awss/src/ui/header.tsx
error: No matching export in "node_modules/@opentui/solid/jsx-runtime.d.ts" for import "Fragment"
    at /Users/user/dev/awss/src/ui/header.tsx

Not sure if recent commits from @msmps fixes that.

Originally created by @aminroosta on GitHub (Sep 1, 2025). Original GitHub issue: https://github.com/anomalyco/opentui/issues/122 Originally assigned to: @Adictya, @fezproof on GitHub. bun compile fails with `"@opentui/solid": "^0.1.13"`. <details><summary> bun build --compile src/index.tsx</summary> ```sh $ bun build --compile src/index.tsx 8 | export { Fragment, jsx, jsxs } from "solid-js/jsx-runtime" ^ error: No matching export in "node_modules/solid-js/dist/solid.js" for import "Fragment" at /Users/user/dev/awss/src/ui/header.tsx:8:10 8 | export { Fragment, jsx, jsxs } from "solid-js/jsx-runtime" error: No matching export in "node_modules/solid-js/dist/solid.js" for import "jsx" at /Users/user/dev/awss/src/ui/header.tsx:8:20 8 | export { Fragment, jsx, jsxs } from "solid-js/jsx-runtime" error: No matching export in "node_modules/solid-js/dist/solid.js" for import "jsxs" at /Users/user/dev/awss/src/ui/header.tsx:8:25 error: No matching export in "node_modules/@opentui/solid/jsx-runtime.d.ts" for import "jsxDEV" at /Users/user/dev/awss/src/ui/header.tsx error: No matching export in "node_modules/@opentui/solid/jsx-runtime.d.ts" for import "Fragment" at /Users/user/dev/awss/src/ui/header.tsx ``` </details> Not sure if [recent](https://github.com/sst/opentui/commit/f16d321917a3d7dd9336c40e1f5a87880fd31315) commits from @msmps fixes that.
kerem 2026-03-02 23:43:59 +03:00
  • closed this issue
  • added the
    bug
    solid
    labels
Author
Owner

@Adictya commented on GitHub (Sep 1, 2025):

We require a plugin, configured in bunfig.toml for transpiling jsx solid. You need to apply that to the build script.

This build script should work:

import solidPlugin from "./node_modules/@opentui/solid/scripts/solid-plugin";

await Bun.build({
  entrypoints: ["./src/index.tsx"],
  target: "bun",
  outdir: "./build",
  plugins: [solidPlugin],
  compile: {
    target: "bun-darwin-arm64",
    outfile: "app-macos",
  },
});

Ill take a look into how this experience can be improved.

<!-- gh-comment-id:3242925472 --> @Adictya commented on GitHub (Sep 1, 2025): We require a plugin, configured in bunfig.toml for transpiling jsx solid. You need to apply that to the build script. This build script should work: ```js import solidPlugin from "./node_modules/@opentui/solid/scripts/solid-plugin"; await Bun.build({ entrypoints: ["./src/index.tsx"], target: "bun", outdir: "./build", plugins: [solidPlugin], compile: { target: "bun-darwin-arm64", outfile: "app-macos", }, }); ``` Ill take a look into how this experience can be improved.
Author
Owner

@aminroosta commented on GitHub (Sep 1, 2025):

That worked, thank you for the quick reply. 🙏

<!-- gh-comment-id:3242941432 --> @aminroosta commented on GitHub (Sep 1, 2025): That worked, thank you for the quick reply. 🙏
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#28
No description provided.