What's the easiest way to use it for local files? I tried both absolute and relative paths and always get
Internal server error Error: ERR_INVALID_URL (-300) loading ''
at rejectAndCleanup (node:electron/js2c/browser_init:165:7500)
at EventEmitter.failListener (node:electron/js2c/browser_init:165:7713)
at EventEmitter.emit (node:events:527:28)
at g.loadURL (node:electron/js2c/browser_init:165:8464)
at n.loadURL (node:electron/js2c/browser_init:33:1856)
at /app/build/html2svg.js:43:24
at process.processTicksAndRejections (node:internal/process/task_queues:96:5) {
errno: -300,
code: 'ERR_INVALID_URL',
url: ''
}
Error: Server error 500
at printRequest (/app/build/html2svg.cli.js:88:15)
at ClientRequest.<anonymous> (/app/build/html2svg.cli.js:73:38)
at ClientRequest.emit (node:events:513:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:693:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:117:17)
at Socket.socketOnData (node:_http_client:534:22)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
Thanks for building this great tool!
What's the easiest way to use it for local files? I tried both absolute and relative paths and always get