-
-
Notifications
You must be signed in to change notification settings - Fork 289
Closed
Labels
scope.publishStatic site generation, sending note links and anything to do with publishing your notes.Static site generation, sending note links and anything to do with publishing your notes.type.bugSomething isn't workingSomething isn't working
Description
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:
- Create a fresh vault.
- Run
npx dendron publish init
- Run
npx dendron publish dev
ornpx dendron publish export
- 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
Labels
scope.publishStatic site generation, sending note links and anything to do with publishing your notes.Static site generation, sending note links and anything to do with publishing your notes.type.bugSomething isn't workingSomething isn't working