"Error: Logseq static directory '../logseq/static' does not exist" when running 'logseq-publish-spa'
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
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.