Open alisha-monark opened 6 months ago
https://github.com/foliojs/pdfkit/blob/b35c6f91799b969e570222f19ca4ef357c480aff/lib/font/standard.js#L23
This is giving me an error when trying to deploy to AWS Lambda using SST because of an extra slash in the path:
Error: ENOENT: no such file or directory, open '/var/task/packages/functions/src//data/Helvetica.afm'
notice the extra slash / after src.
src
If we use path.join() instead of + that would fix the problem
+
please solve
Any workaround?
Still have the same issue here. Error generating PDF: Error: ENOENT: no such file or directory, open '~/.next/server/vendor-chunks/data/Helvetica.afm'
https://github.com/foliojs/pdfkit/blob/b35c6f91799b969e570222f19ca4ef357c480aff/lib/font/standard.js#L23
This is giving me an error when trying to deploy to AWS Lambda using SST because of an extra slash in the path:
Error: ENOENT: no such file or directory, open '/var/task/packages/functions/src//data/Helvetica.afm'
notice the extra slash / after
src
.If we use path.join() instead of
+
that would fix the problem