zhangjingcn / xmind-markdown-translator

This tool help you translate xmind file to markdown syntax. In future, it may support markdown syntax to xmind.
Apache License 2.0
68 stars 16 forks source link

translate fail "throw new ERR_INVALID_ARG_TYPE(name, 'Function', value);" #5

Open haedoang opened 3 months ago

haedoang commented 3 months ago

translate fail throw following error

TypeError [ERR_INVALID_ARG_TYPE]: The "cb" argument must be of type function. Received undefined at makeCallback (node:fs:195:3) at Object.mkdir (node:fs:1357:14) at attachmentWriter (/Users/haedongkim/Desktop/dev/xmind-markdown-translator/lib/attachmentWriter.js:13:12) at Object. (/Users/haedongkim/Desktop/dev/xmind-markdown-translator/app.js:20:1) at Module._compile (node:internal/modules/cjs/loader:1159:14) at loader (/Users/haedongkim/Desktop/dev/xmind-markdown-translator/node_modules/babel-register/lib/node.js:144:5) at Object.require.extensions. [as .js] (/Users/haedongkim/Desktop/dev/xmind-markdown-translator/node_modules/babel-register/lib/node.js:154:7) at Module.load (node:internal/modules/cjs/loader:1037:32) at Function.Module._load (node:internal/modules/cjs/loader:878:12) at Module.require (node:internal/modules/cjs/loader:1061:19) {

haedoang commented 3 months ago

node version : v18.12.1

Sergey-Titkov commented 2 months ago

This is old code and did not work with file after XMind 8