We use the serverless framework to deploy lambda functions with PDFTron code. When building with yarn 1.22.21 and webpack, we get these messages:
warning "@pdftron/pdfnet-node@10.6.0" is missing a bundled dependency "underscore". This should be reported to the package maintainer.
warning "@pdftron/pdfnet-node@10.6.0" is missing a bundled dependency "xhr2". This should be reported to the package maintainer.
Which consequently cause runtime errors. I can solve the issue by manually including the two packages, but I thought I would report it.
@mark.glimm we are using Serverless Framework too and trying to use PDFNet in a NodeJS runtime like you. Was there anything special you did to install PDFNet Node and have it work w/ Serverless? We are getting runtime errors and can’t use the Node SDK. Thanks!