Aymkdn/html-to-pdfmake

window is not defined error on Node

Kerod-Fresenbet-Gebremedhin2660 opened this issue · 2 comments

ReferenceError: window is not defined

Steps to reproduce:

  1. install html-to-pdfmake npm install html-to-pdfmake
  2. convert html to pdf
import htmlToPdfmake from "html-to-pdfmake";

const html = "<h1>Hello World</h1>";
  1. run script

If you run it on Node, then please check the example.js