Well after a 4 months absentance, I'm finding Dend...
# questions
t
Well after a 4 months absentance, I'm finding Dendron no less frustrating. I can't get it build the static files let alone serve them on localhost. Playing with the tutorial, I see no
.next
folder created so I ran PS C:\Users\tfeth\Dendron-1\vault> npx dendron publish init 🌱 checking if .next directory exists. 🌱 .next directory does not exist 🌱 Initializing NextJS template. 🌱 Successfully cloned. 🌱 All dependencies installed. still no
.next
, but maybe thing have changed... run
Dendron Launch Dev
from the command pallette - default - build options, then get an error
siteUrl is undefined
s
- Can you run this same command from the root of your workspace, as opposed to inside of the vault folder? - What is your dendron CLI version (
npx dendron --version
), and what is the Dendron extension version?
s
do you have
siteurl
in dendron.yml configured?
t
There is no dendron.yaml in the tutorial example
s
you want to publish your notes right? there is no publish part in the tutorial
you know about
>Dendron: Show Preview
?
t
Yes, but that only shows individual notes. I want to see how the vault would be if published, which is what
Dendron Launch Dev
used to do. As far as dendron.yml, there is no such file, and the ones have arent current, going to the dendron
s
it's a layer above your vault. You can also reach it via
>Dendron: Configure (yaml)
t
Got it, checking it out
s
oh.. your npm/npx/dendron-cli however stuff should also be in
C:\Users\tfeth\Dendron-1
this is your workspace
C:\Users\tfeth\Dendron-1
and this is your vault
C:\Users\tfeth\Dendron-1\vault
It's a bit confusing. Took me awhile too
t
Seeing that. If I put siteUrl in in dendron.yml and use -default option, I still get an error
siteUrl is undefined
. Doesn't work to put it in C:\Users\tfeth\Dendron-1\pods\dendron.nextjs\config.export.yml either...
Searching Dendron's Discord I found someone using the command below... so I tried the same, and success!
Copy code
PS C:\Users\tfeth\Dendron-1\vault> npx dendron publish dev
🌱 checking if NextJS template is initialized
🌱 NextJS template is already initialized.
generating metadata for publishing...

> @dendronhq/nextjs-template@0.88.0 dev
> next dev

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
event - compiled client and server successfully in 14.3s (3422 modules)
wait  - compiling / (client and server)...
event - compiled client and server successfully in 794 ms (3459 modules)
wait  - compiling /notes/[id]...
event - compiled client and server successfully in 575 ms (3449 modules)
wait  - compiling /notes/[id] (client and server)...
event - compiled client and server successfully in 298 ms (3460 modules)
I wanted to know where the generated .html files would be found, they're at - 'C:\Users\tfeth\Dendron-1\\.next\data\notes'
Since I'd tried several things on that tutorial, so created a fresh instance and that worked too ' PS C:\Users\tfeth\Dendron-3\vault> npx dendron publish dev 🌱 checking if NextJS template is initialized 🌱 NextJS template is not initialized. 🌱 checking if .next directory exists. 🌱 .next directory does not exist 🌱 Initializing NextJS template. 🌱 Successfully cloned. 🌱 All dependencies installed. generating metadata for publishing... > @dendronhq/nextjs-template@0.88.0 dev > next dev ready - started server on 0.0.0.0:3000, url: http://localhost:3000 event - compiled client and server successfully in 14s (3422 modules) wait - compiling / (client and server)... event - compiled client and server successfully in 1145 ms (3459 modules) wait - compiling /notes/[id]... event - compiled client and server successfully in 596 ms (3449 modules) wait - compiling /notes/[id] (client and server)... event - compiled client and server successfully in 333 ms (3460 modules) '
This doesn't work on my old workspaces, going to initialize a new one and drag in the notes.
Doing the above worked! Running 'npx dendron publish dev' in vscodes' embedded shell, (Powershell in my case), means
localhost:3000
shuts down
6 Views