Repository navigation
Move three and glsl-parser to dependencies so BB installs build - #8
Closed
alexandre-vl wants to merge 1 commit into
Closed
alexandre-vl wants to merge 1 commit into
alexandre-vl wants to merge 1 commit into
Conversation
Root cause: BB installs a git plugin with npm install --omit=dev --omit=optional --ignore-scripts, so nothing under devDependencies reaches its build. Scene imports three (ui/components/sceneAssets.ts, sceneWorld.ts) and core/glsl-parser.js imports @shaderfrog/glsl-parser at runtime, so installing 0.2.0 or main through BB fails with "Could not resolve" errors and only 0.1.0 installs. Fix: both sit under dependencies; package-lock.json only drops their dev flags. The other devDependencies the code imports (clsx, sonner, the radix dialog, better-sqlite3, the SDK, ...) are supplied by BB. Fixes ComicBit#7
Owner
|
Thanks for tracking this down. The diagnosis was spot on: BB installs git plugins with The same fix shipped in 0.2.5 (da56158, "install from GitHub again"), which moved both packages to |
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.
Fixes #7.
three(Scene:ui/components/sceneAssets.ts,sceneWorld.ts) and@shaderfrog/glsl-parser(core/glsl-parser.js) are imported at runtime but listed underdevDependencies. BB installs a git plugin withnpm install --omit=dev --omit=optional --ignore-scripts, so neither reaches the build, and installing 0.2.0 ormainthrough BB fails withCould not resolve "three".This moves both to
dependencies. Inpackage-lock.jsononly the root entry and the two packages'devflags change.Tested on bb 0.46.1
bb plugin install git:https://github.com/alexandre-vl/bb-plugin-genui.git@fix/bb-install-runtime-depsgives[email protected] running. The same command onmainfails with the 13threeerrors quoted in Can't install 0.2.0 or main through BB: three and @shaderfrog/glsl-parser are devDependencies #7.bb plugin build:mainand v0.2.0 fail as published and exit 0 with this change. Moving only glsl-parser still fails onthree(13 errors), so both moves are needed.npm ci,tsc --noEmit,vitest run) give the same result asmain: the lockfile is in sync, there are 0 type errors, and all 956 tests in 81 files pass.b6e23a0), clicked in a real thread and in the gallery at desktop and iPhone sizes: it opens, fits the picture (1056×528, its full size, on desktop), two Zoom-ins give ×2.25, and Escape closes it, with no page errors.