pdfme esbuild warnings
I am using pdfme to generate PDF in the backend.
After importing the libraries, @pdfme/common.
I got some warnings saying something wrong with tsconfig. I thought it was just warning but after I tried to import @pdfme/schemas using plugins. Some of the defined functions are undefined.
I tried to run this a local nodejs environment but couldn't reproduce this same issue.
To reproduce the same issue:
you can use this code in the thread
4 Replies
It looks like
pdfme/common
doesn't bundle very well. Could you try making it an external module?Thanks @ballingt
I tried to include all related pdfme into convex.json but doesn't seem working. Still the same error.
I wonder if it's related to how upng is bundled into pdfme.
fyi. I switched to use pdfmake library after trying almost all the popular libraries on the market.