Skip to content

Troubleshooting

Use Node.js 22.12 or later and an existing source directory:

Terminal window
npx @dirwell/cli server ./downloads

A file path is not a directory. Build requires --out. Server-only flags fail in build mode and build-only flags fail in server mode. Start with --help.

Plain is included. Other themes must be installed in the working project or supplied through npm exec alongside CLI. Explicit theme errors do not fall back to Plain. A config import needs the package installed in the project containing that config.

Use dirwell.config.mjs, or --config with a native JavaScript module. The default export must be a resolved object with theme, listing, build, server. Put excludes inside build/server, not at the top level. Existing unsupported config filenames trigger a migration error instead of being ignored. Two packages providing the dirwell executable should not be installed in the same project.

Static output requires a rebuild. Server reads data on requests; Plain needs refresh/navigation. Rich clients need --live or server.live for automatic updates. A custom browser cache policy may skip requests; default responses use no-store. Source edits require a new compiled theme instance or the authoring development server.

Rich themes filter complete directory data. Ledger archive search is available in static output; live server mode has no archive index. Plain has no search runtime. HTML pagination, data blocks and row virtualization are separate choices.

Publish the entire output tree and match --base to its deployed root when using rooted URLs. Check routing.directoryUrls against the host lookup rules. Explicit links need exact file access, slash links need directory indexes, and clean links need extensionless mapping. A SPA fallback can return 200 for the wrong document. See directory URLs. Source index pages may cause an explorer to use _dirwell.html. Do not assume opening a rich page through file:// qualifies its fetch-based client.

Standalone safe-media mode previews supported images/audio/video and downloads HTML, SVG and other active formats. Integrated handlers disable file transport by default; the host must opt in or delegate file links. Outside, broken and excluded targets remain unavailable.

Unexpected redirect or clean URL collision

Section titled “Unexpected redirect or clean URL collision”

Inspect the final URL and relative file/data requests. Host redirects can override explicit filenames. Do not remove slashes in theme code. A real folder.html file conflicts with clean output for folder/; choose explicit/slash routing or change publication selection deliberately. The build preserves the previous output when it rejects a conflict. See existing pages.