Unhandled Promise Rejection: TypeError: minifyHTMLString is not a function. (In 'minifyHTMLString(contentHTML)', 'minifyHTMLString' is undefined)
import {htmlToDocx} from 'html-to-docx'
const s = `<article style="break-after: page"> <p><strong>Bosch</strong> <em>arrived</em> <u>late</u> and had to park on a <strong><u>cemetery</u></strong> lane far from the <strong><em>grave</em></strong> site.</p> <h3 class="anchor anchorWithStickyNavbar_node_modules-@docusaurus-theme-classic-lib-next-theme-Heading-styles-module" id="ka2l0-3 templates-and-certificates" > Templates and Certificates </h3> <p> The templates and certificates in are included. </p> </div> </article> `;
(async () => {
const fileBuffer = await htmlToDocx(s, null, {
// table: { row: { cantSplit: true } },
// footer: true,
// pageNumber: true,
});
Unhandled Promise Rejection: TypeError: minifyHTMLString is not a function. (In 'minifyHTMLString(contentHTML)', 'minifyHTMLString' is undefined)