hajareshyam / pdf-creator-node

This package is used to generate HTML to PDF in Nodejs
MIT License
239 stars 80 forks source link

Error "Can't find variable: WeakMap" #122

Open LucasSchneiderRS opened 6 months ago

LucasSchneiderRS commented 6 months ago

Tryin to use ApexCharts with, but gte this error...any ideas?

  error = new Error('html-pdf: Unknown Error')
            ^

Error: html-pdf: Unknown Error html-pdf: Evaluation - ReferenceError: Can't find variable: WeakMap Stack: at https://cdn.jsdelivr.net/npm/apexcharts at https://cdn.jsdelivr.net/npm/apexcharts

at ChildProcess.respond (C:\DASS-OEE\RELATORIOS PDF\node_modules\html-pdf\lib\pdf.js:134:17)
at ChildProcess.emit (node:events:514:28)
at ChildProcess._handle.onexit (node:internal/child_process:294:12)

Node.js v20.8.0