Repository navigation
Fix desktop launch: export bb-app/dist/bb-app.js - #392
Merged
Merged
Conversation
The desktop bridge boots the app via `import "bb-app/dist/bb-app.js"`, but the `exports` map added in #343 only declared the `"."` entry. Node's exports encapsulation then rejects every unlisted subpath, so the packaged desktop app crashed at startup with ERR_PACKAGE_PATH_NOT_EXPORTED. (npx is unaffected: it launches via the `bin` field, a direct file path that bypasses exports.) Add the `./dist/bb-app.js` subpath to `exports` so the launcher entry resolves. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
SawyerHood
added a commit
that referenced
this pull request
Jun 25, 2026
Patch release carrying the desktop launch fix (#392): export bb-app/dist/bb-app.js so the packaged desktop bridge can boot. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
brsbl
added a commit
that referenced
this pull request
Oct 9, 2026
…d edge, general 3D guidance Ports brsbl/bb-plugins 621f3faeb, a9106eaa1 and 70477277f. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The packaged desktop app crashes at startup:
Root cause
The desktop bridge (
apps/desktop/src/bb-app-bridge.ts) boots the app via aside-effect import of the launcher entry:
Before #343,
bb-apphad noexportsfield, so Node allowed any deep import.#343 ("Expose public bb-app SDK") added an
exportsmap declaring only the"."entry. Onceexportsis present, Node's exports encapsulation rejectsevery subpath that isn't listed — breaking the bridge's deep import.
npx bb-appis unaffected because it launches through thebinfield (a directfile path that bypasses module-exports resolution), which is why only the
desktop app failed.
Fix
Add the
./dist/bb-app.jssubpath to theexportsmap. Verified withimport.meta.resolvethat both the deep launcher import and the root SDK entryresolve correctly.
🤖 Generated with Claude Code