https://www.dendron.so/ logo
Join Discord
Powered by
# questions
  • u

    user

    02/03/2022, 5:54 PM
    I believe so. The root meaning the directory where the dendron.yml is correct?
  • b

    benhsm | Jack of N trades

    02/03/2022, 5:55 PM
    that should be it
  • u

    user

    02/03/2022, 5:55 PM
    that's where i'm running the command then 😦
  • s

    SeriousBug

    02/03/2022, 5:56 PM
    Can you show the errors too? Let me see if they mean anything
  • u

    user

    02/03/2022, 6:12 PM
    I'm also unable to get rid of the `.next`'s untracked content within the repo. Maybe that's the source. Though how to fix that is beyond me.
  • s

    SeriousBug

    02/03/2022, 6:24 PM
    Oh this is very clearly a bug, sorry about that! Could you file a bug report for this please?
  • s

    SeriousBug

    02/03/2022, 6:25 PM
    The .next folder is supposed to be added to
    .gitignore
    but that must have failed because of the bug. You can delete it for now
  • u

    user

    02/03/2022, 6:26 PM
    Oh so I just delete the WHOLE .next folder?
  • s

    SeriousBug

    02/03/2022, 6:27 PM
    Yup, publish will recreate it automatically (once we fix that bug!)
  • u

    user

    02/03/2022, 6:28 PM
    ah ok. So for now the notes wont be able to be published without the bug fix?
  • s

    SeriousBug

    02/03/2022, 6:30 PM
    A workaround is possible: 1. Initialize a new Code Workspace (Dendron: Initialize Workspace, then pick Code Workspace) 2. Copy the
    dendron.code-workspace
    file from that new workspace to your existing workspace, next to
    dendron.yml
    3. Retry publishing That will probably fix the issue, it looks like a problem with different types of workspaces
  • s

    ScriptAutomate

    02/03/2022, 6:32 PM
    Have you tried the command(s) without
    npx
    ? If the CLI was installed at the global level,
    npx
    isn't required as a prefix. So, commands become more like:
    Copy code
    sh
    dendron publish init
    dendron publish dev
  • u

    user

    02/03/2022, 6:41 PM
    I must admit I've been stuck here just trying to delete the .next file. 😢
  • s

    SeriousBug

    02/03/2022, 6:42 PM
    It's a folder not a file. I'm not super familiar with windows, but
    rm -rf .next
    should probably work
  • s

    SeriousBug

    02/03/2022, 6:43 PM
    Or
    rd /s /q ".next"
    according to stack overflow 😅
  • u

    user

    02/03/2022, 6:46 PM
    Gave it a go and got about 1 full minute of error messages for 'permission denied'
  • t

    Tika

    02/03/2022, 6:48 PM
    I never managed to make this process work on Windows using native shells. It did work using the Ubuntu shell via WSL
  • u

    user

    02/03/2022, 6:56 PM
    Figured it out, too a bunch of permissions jiggery pokery but it's finally gone. Now to try all the other workarounds and fixes 🙂
  • u

    user

    02/03/2022, 7:00 PM
    So I initialized another blank workspace and there appears to be no dendron.code-workspace file there.
  • u

    user

    02/03/2022, 7:01 PM
    oop. wait a minute. I'm a bonehead
  • j

    johndendron29

    02/03/2022, 7:01 PM
    What I know is the command Dendron Site Build has been renamed to Dendron: Publish Export.
  • u

    user

    02/03/2022, 7:01 PM
    it's a hidden file
  • u

    user

    02/03/2022, 7:02 PM
    Does that mean that that guide is relevant? Or is it still deprecated?
  • u

    user

    02/03/2022, 7:09 PM
    So I've retrofitted the
    dendron.code-workspace
    file into the workspace's root. Then retried the
    npx dendron publish
    command as per this guide: https://wiki.dendron.so/notes/FnK2ws6w1uaS1YzBUY3BR/ The results are that there are now no errors in the terminal window so that's nice. However going to the localhost does not yield a website preview. Also the
    .next
    file has returned as a result of using the command 😢
  • b

    benhsm | Jack of N trades

    02/03/2022, 7:18 PM
    I think it's by default
  • u

    user

    02/03/2022, 7:19 PM
    Yeah. I checked and it's not running
  • u

    user

    02/03/2022, 7:33 PM
    Hey, is there a way to add the .next file to the .gitignore manually? It appears that this is the main problem I'm having. Git pages is flagging me that it can't find the .next directory.
  • s

    SeriousBug

    02/03/2022, 7:34 PM
    You can just open the file
    .gitignore
    and add a line that says
    .next
    in it
  • s

    SeriousBug

    02/03/2022, 7:34 PM
    Although if you already added
    .next
    there may be more stuff you need to do
  • r

    rethec

    02/03/2022, 7:48 PM
    I added as vault source my nextcloud notes folder, it works but I also see the root.md and a 404md in the online few of notes. Is there a way to not show this online? Or do you just ignore it?
1...537538539...757Latest