Skip to content

TiddlyServer fails with the new TW 5.4.0-prerelease. #142

@J1lgu3r0

Description

@J1lgu3r0

Hi Arlen,

I have read that you are not really maintaining TiddlyServer. Nevertheless, I have kept using it because I use several TWs and I serve some files from my local disk. I have also replaced the old TW version that TiddlyServer ships with, with newer TW releases, by manually replacing them in "C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\tiddlyserver\node_modules" (Windows)

But it seems that the new 5.4.0-prerelease introduces some changes that break TiddlyServer. I am copying the error output text below.
It seems there are some changes in load-modules.js, maybe:

$tw.backgroundActionDispatcher = new $tw.BackgroundActionDispatcher($tw.filterTracker,$tw.wiki);
if($tw.node) {
$tw.Commander.initCommands();
}

Anyway, thank you for TiddlyServer. I thought it would still valuable to report the error. Regards.

D:\Tools\TiddlyWiki\TiddlyServer\2.2.0>tiddlyserver --config D:\Tools\TiddlyWiki\TiddlyServer\2.2.0\settings.json
Settings file: D:\Tools\TiddlyWiki\TiddlyServer\2.2.0\settings.json
TiddlyWiki: C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\node_modules\tiddlywiki-production-server
Creating servers as http
Remember that any login credentials are being sent in the clear
STARTER 2026-02-21 18:23:54 server 127.0.0.1 listening
Open your browser and type in one of the following:
http://127.0.0.1:8081
webPort=9060
twboot-server: 173.128ms
TypeError: Cannot read properties of undefined (reading 'initCommands')
at Object.exports.startup ($:/core/modules/startup/load-modules.js:61:17)
at Object.$tw.boot.executeNextStartupTask (C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\node_modules\tiddlywiki-production-server\boot\boot.js:2630:27)
at Object.$tw.boot.execStartup (C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\node_modules\tiddlywiki-production-server\boot\boot.js:2577:11)
at Object.$tw.boot.startup (C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\node_modules\tiddlywiki-production-server\boot\boot.js:2587:11)
at C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\node_modules\tiddlywiki-production-server\boot\boot.js:2767:12
at Object.$tw.boot.decryptEncryptedTiddlers (C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\node_modules\tiddlywiki-production-server\boot\boot.js:1873:2)
at Object.$tw.boot.boot [as boot] (C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\node_modules\tiddlywiki-production-server\boot\boot.js:2765:11)
at C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\index.js:113:63552
at new Promise ()
at C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\index.js:113:63141
at Function.trigger (C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\index.js:113:64378)
at Object.t.handleDataFolderRequest (C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\index.js:113:62588)
at Object.t.handleTreeRoute (C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\index.js:113:41346)
TypeError: Cannot read properties of undefined (reading 'initCommands')
at Object.exports.startup ($:/core/modules/startup/load-modules.js:61:17)
at Object.$tw.boot.executeNextStartupTask (C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\node_modules\tiddlywiki-production-server\boot\boot.js:2630:27)
at Object.$tw.boot.execStartup (C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\node_modules\tiddlywiki-production-server\boot\boot.js:2577:11)
at Object.$tw.boot.startup (C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\node_modules\tiddlywiki-production-server\boot\boot.js:2587:11)
at C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\node_modules\tiddlywiki-production-server\boot\boot.js:2767:12
at Object.$tw.boot.decryptEncryptedTiddlers (C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\node_modules\tiddlywiki-production-server\boot\boot.js:1873:2)
at Object.$tw.boot.boot [as boot] (C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\node_modules\tiddlywiki-production-server\boot\boot.js:2765:11)
at C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\index.js:113:63552
at new Promise ()
at C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\index.js:113:63141
at Function.trigger (C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\index.js:113:64378)
at Object.t.handleDataFolderRequest (C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\index.js:113:62588)
at Object.t.handleTreeRoute (C:\Users\xxxx\AppData\Roaming\npm\node_modules\tiddlyserver\index.js:113:41346)
[2026-02-21T18:24:02.168+-100] GET - 127.0.0.1 /Hobbies/recipes/default/tiddlers.json?filter=%5Ball%5Btiddlers%5D%5D%20-%5B%5B%24%3A%2FisEncrypted%5D%5D%20-%5Bprefix%5B%24%3A%2Ftemp%2F%5D%5D%20-%5Bprefix%5B%24%3A%2Fstatus%2F%5D%5D%20-%5B%5B%24%3A%2Fboot%2Fboot.js%5D%5D%20-%5B%5B%24%3A%2Fboot%2Fbootprefix.js%5D%5D%20-%5B%5B%24%3A%2Flibrary%2Fsjcl.js%5D%5D%20-%5B%5B%24%3A%2Fcore%5D%5D - ms - -
[2026-02-21T18:24:02.189+-100] GET 127.0.0.1 200 127.0.0.1 / 2.957 ms - 7362
[2026-02-21T18:24:02.312+-100] GET 127.0.0.1 304 127.0.0.1 /directory.css 7.875 ms - -
[2026-02-21T18:24:02.316+-100] GET 127.0.0.1 304 127.0.0.1 /assets/icons/group.png 2.788 ms - -
[2026-02-21T18:24:02.318+-100] GET 127.0.0.1 304 127.0.0.1 /assets/icons/error.png 2.959 ms - -
[2026-02-21T18:24:02.321+-100] GET 127.0.0.1 304 127.0.0.1 /assets/icons/datafolder.png 1.519 ms - -
[2026-02-21T18:24:02.323+-100] GET 127.0.0.1 304 127.0.0.1 /assets/icons/folder.png 2.433 ms - -
twboot-server: 104.098ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions