It worked fine for me, both using an early version of 5.1.23-prerelease and then with 5.1.22. I also tried it renaming your .html to index.html and pasting your exact command. Works.
However, I'm on Linux, not Mac, so maybe there's a difference there. Also using Node v8.11.1 . >From your error, it looks like it doesn't like one of your custom plugins. Is the file at rudimentarylathe exactly the same as the one you're working with locally? On Tuesday, December 15, 2020 at 5:59:46 AM UTC-8 [email protected] wrote: > I'm trying to convert my single-file html wiki for use via Node.js. I've > typically done this using the following... > > `tiddlywiki --load ./index.html --savewikifolder ./newwikifolder` > > 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) > > I'm on macOS running latest Node.js and tiddlywiki 5.1.22 > > Jack > > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/bd9f9f0b-ce4d-4480-9ffd-8e6efff8084en%40googlegroups.com.

