Open jabibamman opened 1 year ago
Similar error happens for me even though it was handled by try catch. this happens when pdf tries to create with a invalid image string.
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Invalid image: File 'iVBORw0KGgoAAAANSUhEUgAABR0AAAaZCAYAAADBNai5AAAA' not found in virtual file system Images dictionary should contain dataURL entries (or local file paths in node.js)".] { code: 'ERR_UNHANDLED_REJECTION' }
I get the below error when trying to return the pdf promise with NestJs:
UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "File 'Roboto-Medium.ttf' not found in virtual file system".
I'm currently using the
0.2.7
version of pdfMake