lonekorean/wordpress-export-to-markdown

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

Closed this issue · 1 comments

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

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

You can check by running node -v.