hajareshyam / pdf-creator-node

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

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

Open LucasSchneiderRS opened 4 months ago

LucasSchneiderRS commented 4 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