logseq / publish-spa

A github action and CLI to publish logseq graphs as a SPA app
MIT License
244 stars 14 forks source link

bb: command not found #12

Closed Mohammer5 closed 1 year ago

Mohammer5 commented 1 year ago

What Happened?

I followed the CLI instructions on my NixOS machine. When running logseq-publish-spa, I get the following output:

$ logseq-publish-spa out 
Downloading dependencies...
/bin/sh: line 1: bb: command not found
node:internal/errors:857
  const err = new Error(message);
              ^

Error: Command failed: bb --config [private yarn path]/global/node_modules/@logseq/publish-spa/.nbb/.cache/758227426d2e2654ea251bc69dafc5dbe6c3f018/deps.edn --deps-root [private yarn path]/global/node_modules/@logseq/publish-spa uberjar [private yarn path]/global/node_modules/@logseq/publish-spa/.nbb/.cache/758227426d2e2654ea251bc69dafc5dbe6c3f018/nbb-deps.jar
/bin/sh: line 1: bb: command not found

    at checkExecSyncError (node:child_process:861:11)
    at Module.execSync (node:child_process:932:15)
    at file:///[private yarn path]/global/node_modules/@logseq/publish-spa/node_modules/@logseq/nbb-logseq/lib/nbb_deps.js:5:94
    at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
    at async file:///home/gerkules/.config/yarn/global/node_modules/@logseq/publish-spa/publish_spa.mjs:9:18 {
  status: 127,
  signal: null,
  output: [
    null,
    Buffer(0) [Uint8Array] [],
    Buffer(39) [Uint8Array] [
       47,  98, 105, 110,  47, 115, 104,  58,  32,
      108, 105, 110, 101,  32,  49,  58,  32,  98,
       98,  58,  32,  99, 111, 109, 109,  97, 110,
      100,  32, 110, 111, 116,  32, 102, 111, 117,
      110, 100,  10
    ]
  ],
  pid: 259744,
  stdout: Buffer(0) [Uint8Array] [],
  stderr: Buffer(39) [Uint8Array] [
     47,  98, 105, 110,  47, 115, 104,  58,  32,
    108, 105, 110, 101,  32,  49,  58,  32,  98,
     98,  58,  32,  99, 111, 109, 109,  97, 110,
    100,  32, 110, 111, 116,  32, 102, 111, 117,
    110, 100,  10
  ]
}

Reproduce the Bug

Expected Behavior

Should've built a working spa

Desktop or Mobile Platform Information

logseq-cldwalker commented 1 year ago

Hi. The CLI instructions mention installing babashka which is bb. Does that resolve your issue?

Mohammer5 commented 1 year ago

The CLI instructions mention installing babashka which is bb. Does that resolve your issue?

Oh man, now I feel stupid :sweat: Yup, that solved my issue. ~Now I get an out folder, but it has 0 pages. I'll try to investigate a bit further, maybe I just overlooked something again. Otherwise, I'll create a new issue~

EDIT: I had to change a setting to publish all pages automatically