TiddlyWiki / TiddlyWiki5

A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
https://tiddlywiki.com/
Other
8.08k stars 1.19k forks source link

[BUG] Missing error-message running: "tiddlywiki --build" #8694

Closed pmario closed 1 month ago

pmario commented 1 month ago

To reproduce

You will get:

PS E:\git\tiddly\tiddlywiki\TiddlyWiki5> tiddlywiki  --build
$:/core/modules/commands/build.js:27
        var buildTargets = $tw.boot.wikiInfo.build;
                                             ^

TypeError: Cannot read properties of null (reading 'build')
    at Command.execute ($:/core/modules/commands/build.js:27:39)
    at Commander.executeNextCommand ($:/core/modules/commander.js:107:14)
    at Commander.execute ($:/core/modules/commander.js:64:7)
    at exports.startup ($:/core/modules/startup/commands.js:34:12)
    at $tw.boot.executeNextStartupTask ($:/boot/boot.js:2620:10)
    at $tw.boot.executeNextStartupTask ($:/boot/boot.js:2618:21)
    at $tw.boot.executeNextStartupTask ($:/boot/boot.js:2618:21)
    at $tw.boot.executeNextStartupTask ($:/boot/boot.js:2618:21)
    at $tw.boot.executeNextStartupTask ($:/boot/boot.js:2618:21)
    at $tw.boot.executeNextStartupTask ($:/boot/boot.js:2618:21)

Node.js v20.18.0

Expected

There should be an error message, that "path" parameter or however this one is named is missing.

Jermolene commented 1 month ago

Thanks @pmario