Szpadel/chrome-headless-render-pdf

TypeError: net.createServer is not a function

maheshwari-mohit opened this issue · 1 comments

I am getting an error when using below statement in my angular app
RenderPDF.generateSinglePdf('http://google.com', 'outputPdf.pdf');

Attaching the screenshot of the console error.
Capture

This library is meant to be used only with node.js