# Missing a bundled dependency

**URL:** <https://community.apryse.com/t/missing-a-bundled-dependency/8845>\
**Category:** Apryse SDK\
**Tags:** java-script\
**Created:** [January 31, 2024, 9:57pm UTC](https://community.apryse.com/t/missing-a-bundled-dependency/8845 "2024-01-31T21:57:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark.glimm](https://community.apryse.com/letter_avatar_proxy/v4/letter/m/278dde/32.png) [@mark.glimm](https://community.apryse.com/u/mark.glimm)\
**Post date:** [January 31, 2024, 9:57pm UTC](https://community.apryse.com/t/missing-a-bundled-dependency/8845/1 "2024-01-31T21:57:51Z")

</div>

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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![Ryan](https://community.apryse.com/user_avatar/community.apryse.com/ryan/32/314_2.png) [@Ryan](https://community.apryse.com/u/Ryan)\
**Post date:** [February 1, 2024, 6:53am UTC](https://community.apryse.com/t/missing-a-bundled-dependency/8845/2 "2024-02-01T06:53:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ryan](https://community.apryse.com/user_avatar/community.apryse.com/ryan/32/314_2.png) [@Ryan](https://community.apryse.com/u/Ryan)\
**Post date:** [February 1, 2024, 7:07am UTC](https://community.apryse.com/t/missing-a-bundled-dependency/8845/3 "2024-02-01T07:07:23Z")

</div>

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](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](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)

---

<div class="post-metadata">

**Author:** ![mark.glimm](https://community.apryse.com/letter_avatar_proxy/v4/letter/m/278dde/32.png) [@mark.glimm](https://community.apryse.com/u/mark.glimm)\
**Post date:** [February 1, 2024, 6:17pm UTC](https://community.apryse.com/t/missing-a-bundled-dependency/8845/4 "2024-02-01T18:17:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![brent.farese](https://community.apryse.com/letter_avatar_proxy/v4/letter/b/8e7dd6/32.png) [@brent.farese](https://community.apryse.com/u/brent.farese)\
**Post date:** [February 17, 2024, 9:09am UTC](https://community.apryse.com/t/missing-a-bundled-dependency/8845/5 "2024-02-17T09:09:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mark.glimm](https://community.apryse.com/letter_avatar_proxy/v4/letter/m/278dde/32.png) [@mark.glimm](https://community.apryse.com/u/mark.glimm)\
**Post date:** [February 17, 2024, 5:17pm UTC](https://community.apryse.com/t/missing-a-bundled-dependency/8845/6 "2024-02-17T17:17:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![brent.farese](https://community.apryse.com/letter_avatar_proxy/v4/letter/b/8e7dd6/32.png) [@brent.farese](https://community.apryse.com/u/brent.farese)\
**Post date:** [February 17, 2024, 11:06pm UTC](https://community.apryse.com/t/missing-a-bundled-dependency/8845/7 "2024-02-17T23:06:20Z")

</div>

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

> [@"Cannot find module './addon'" error during deployment](https://community.apryse.com/t/cannot-find-module-addon-error-during-deployment/5973/6):
>
> We get the error “Cannot find module ‘./addon’” when using PDFNet Node SDK w/ Lambda. The problem is I am developing on MacOS and when I run yarn install, it installs the MacOS version of the SDK, but the Lambdas need to use Linux, I think. @Ryan do you have any idea how to make this work for Lambda? Ideally I would yarn install the Linux version of the SDK locally even though my local environment is MacOS. Thank you.
