I'm trying to convert my single-file html wiki for use via Node.js. I've typically done this using the following...
Here's what happens with the wiki I'm trying to convert...
node:internal/fs/utils:821
throw new ERR_INVALID_ARG_TYPE(
^
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
at Object.writeFileSync (node:fs:1512:5)
at Object.exports.saveTiddlerToFileSync ($:/core/modules/utils/filesystem.js:337:6)
at WikiFolderMaker.saveTiddler ($:/core/modules/commands/savewikifolder.js:165:12)
at $:/core/modules/commands/savewikifolder.js:156:8
at Object.$tw.utils.each (/usr/local/lib/node_modules/tiddlywiki/boot/boot.js:135:12)
at WikiFolderMaker.saveCustomPlugin ($:/core/modules/commands/savewikifolder.js:155:12)
at $:/core/modules/commands/savewikifolder.js:99:12
at Object.$tw.utils.each (/usr/local/lib/node_modules/tiddlywiki/boot/boot.js:126:12)
at WikiFolderMaker.save ($:/core/modules/commands/savewikifolder.js:79:12)
at Command.execute ($:/core/modules/commands/savewikifolder.js:39:25) {
code: 'ERR_INVALID_ARG_TYPE'
Doing this on an empty.html wiki does not throw an error. I'm not sure where to begin looking. Any tips would be appreciated. (it's the wiki at rudimentarylathe.wiki)