Skip to content

server fails to start when running dendron publish commands #3996

@raeyulca

Description

@raeyulca

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

  • Workspace. VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
  • Lookup. Dendron's Lookup Command
  • Views. Dendron Preview, Tree View, Side Panels in the UI
  • Schema. Dendron Schemas
  • Pod. Data import from / export to Dendron
  • Publish. External Site Publish
  • Markdown. Markdown features, such as syntax support and features

Describe the bug

(Possible duplicate of #3696 but I didn't want to necrobump)

In short, running npx dendron publish dev in a fresh environment fails, with ECONNREFUSED at 127.0.0.1:<port>, where <port> is the port specified for the engine server via config.

Unfortunately, even with LOG_LEVEL=debug, the error log only shows [object object] when printing the error message due to the handling in error2PlainObject.

To Reproduce

Steps to reproduce the behavior:

  1. Create a fresh vault.
  2. Run npx dendron publish init
  3. Run npx dendron publish dev or npx dendron publish export
  4. See error

Expected behavior

The publish commands work.

Additional context

I forked this repo, and used JSON.stringify on the error object to elucidate the problem.
The issue is because snapdragon-node is not installed in the template repository (relevant log excerpt below):

ECONNREFUSED
...
 {\n  code: 'MODULE_NOT_FOUND',\n  path: '/workspaces/testvault/private/.next/node_modules/snapdragon-node/package.json',\n  requestPath: 'snapdragon-node'\n}",

can be solved with the following PR: dendronhq/nextjs-template#7

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope.publishStatic site generation, sending note links and anything to do with publishing your notes.type.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions