tiddlywiki --build index 実行時のエラー


Photo by Colin Maynard on Unsplash


offline copy 作成時 tiddlywiki --build index の実行時に以下のメッセージが出てしまいました。

C:\Users\vvv>tiddlywiki --build index

$:/core/modules/commands/build.js:27
        var buildTargets = $tw.boot.wikiInfo.build;
                                            ^
TypeError: Cannot read property 'build' of null
    at Command.execute ($:/core/modules/commands/build.js:27:38)
    at Commander.executeNextCommand ($:/core/modules/commander.js:100:14)
    at Commander.execute ($:/core/modules/commander.js:64:7)
    at Object.exports.startup ($:/core/modules/startup/commands.js:34:12)

Windows10のコマンドプロンプトを起動時のフォルダーで実行していた。
それが原因のようです。
TiddlyWikiのフォルダーで実行すれば動作します。

C:\Users\vvv\mywiki>tiddlywiki --build index
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList
FileSystem: Saved file C:\Users\vvv\mywiki\tiddlers\$__StoryList.tid

C:\Users\vvv\mywiki>