lonekorean / wordpress-export-to-markdown

Converts a WordPress export XML file into Markdown files.
MIT License
1.08k stars 221 forks source link

TypeError: postContent.matchAll(...) is not a function or its return value is not iterable #46

Closed rahulwagh closed 3 years ago

rahulwagh commented 3 years ago

While using this utility I faced the following error

Parsing...
31 posts found.
160 attached images found.

Something went wrong, execution halted early.
TypeError: postContent.matchAll(...) is not a function or its return value is not iterable
    at getItemsOfType.forEach.post (/home/rahul/Jhooq/jhooq-wordpress-export-and-markdown/wordpress-export-to-markdown/src/parser.js:107:35)
    at Array.forEach (<anonymous>)
    at collectScrapedImages (/home/rahul/Jhooq/jhooq-wordpress-export-and-markdown/wordpress-export-to-markdown/src/parser.js:102:31)
    at Object.parseFilePromise (/home/rahul/Jhooq/jhooq-wordpress-export-and-markdown/wordpress-export-to-markdown/src/parser.js:23:18)

Raising this issue here because I am not a Node.js expert but may be someone could fix it

lonekorean commented 3 years ago

Make sure you are using node v12.14 or later.

You can check by running node -v.