dendronhq / dendron

The personal knowledge management (PKM) tool that grows as you do!
https://wiki.dendron.so
Apache License 2.0
6.52k stars 247 forks source link

Latest version of dendron-cli `0.124.2` breaks when running `npx dendron publish init` #3981

Open viswak-cn opened 3 months ago

viswak-cn commented 3 months ago

Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

Describe the bug

Context:

Using dendron-cli's latest version: 0.124.2 and following this guide for publishing Dedron site on GH pages using GH actions.

Problem:

While running command: npx dendron publish init Got error: TypeError: common_server_1.DConfig.getRaw is not a function

Full error screenshot:

image

To Reproduce

Steps to reproduce the behavior:

  1. Create a new Dendon repo out of "https://github.com/dendronhq/dendron-template".
  2. Follow guide to setup GH pages for publishing.
  3. On step to initialize publishing, when you run npx dendron publish init
  4. You will see the error.

Expected behavior

I downgraded the dendron CLI version to 0.119.0 - it works as expected. The screenshot of the out of the same command after downgrading: image

Desktop (please complete the following information)

raininja commented 3 months ago

I have the same error, with the same resolution, 0.119.0 works, 0.124.2 fails with "common_server_1.DConfig.getRaw is not a function"

haudoing commented 2 months ago

I saw the same error on my GitLab pipeline too. I opened an issue on gitlab template here too.

daniellovell commented 2 months ago

Confirm latest is broken currently on Windows running from PowerShell and WSL both. Reverting to 0.119.0 fixes.

Morrighan89 commented 1 month ago

I have the same issue on Ubuntu LTS 22.04 and I confirm that 0.119.0 works fine instead.

Akshat-Jain commented 1 month ago

I have the same problem on MacOS as well as Ubuntu. Downgrading to 0.119.0 worked for me as well!