publish-spa icon indicating copy to clipboard operation
publish-spa copied to clipboard

"Error: Logseq static directory '../logseq/static' does not exist" when running 'logseq-publish-spa'

Open keebeegee opened this issue 1 year ago • 1 comments

What Happened?

After successful installation I tried to run:

logseq-publish-spa out

in a logseq directory and got the following error:

Error: Logseq static directory '../logseq/static' does not exist. Please provide a valid directory Installation w/o any problems/errors.

Reproduce the Bug

a) Follow CLI instructions as provided here: https://github.com/logseq/publish-spa?tab=readme-ov-file#cli b) Change to logseq dir and run "logseq-publish-spa out"

Expected Behavior

Export graph to directory "out"

Desktop or Mobile Platform Information

WIN 10 - WSL 2 Ubuntu 22-01 LTS

keebeegee avatar Aug 28 '24 18:08 keebeegee

If you clone logseq into $HOME/src/logseq then you can specify the static directory as an arg.

logseq-publish-spa out --static-directory=$HOME/src/logseq/static

I got stuck on this for a minute too.

redsorbet avatar Mar 15 '25 18:03 redsorbet