"Cannot find module './addon'" error during deployment

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.

1 Like