Missing a bundled dependency

Product:

Product Version: @pdftron/pdfnet-node@10.6.0

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.

Thank you for the report. We will look to improve this in the future.

Actually, I believe this is now resolved in our latest builds.

Can you try our latest nightly build.
https://dev.apryse.com/nightly/stable/2024-01-31/10.6

For example, macOS Intel Node16 download this version

https://nightly-pdftron-uploads.s3.us-west-1.amazonaws.com/stable/2024-01-26/10.6/pdfnet-node/PDFNetNode_MacX64_Node16_2024-01-26_stable.zip

Thank you, yes my mistake, the system I was using was actually at 10.1, where the bundled dependencies were missing.

@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!

Depends on the error… is it the same as the initial message? Need more specifics.

Here’s a link to specifics. We get an error Cannot find module './addon. Any ideas since you successfully set this up using Serverless?