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/e6b85ad6-fbc7-44bf-8ec3-1ab6f839d7adn%40googlegroups.com.

Reply via email to