pdf-lib icon indicating copy to clipboard operation
pdf-lib copied to clipboard

Error on Installation (MongoDB Realm Node Serverless)

Open saurav2799 opened this issue 4 years ago • 0 comments

What were you trying to do?

Install the library on a mongodb realm nodejs-serverless environment

How did you attempt to do it?

install module via the installer

What actually happened?

Failed to install dependencies failed to transpile node_modules/pdf-lib/dist/pdf-lib.esm.min.js. "pdf-lib" is likely not supported yet. unknown: Exporting local "wn", which is not declared.

What did you expect to happen?

The lib to be installed, e.g. when using the same to install other libs such as uuid, nodemailer etc in the serverless backend, dont give any errors and then they can used inside the serveless functions.

How can we reproduce the issue?

Create a MongoDB Project - this will be the Atlas Database Once database created, please switch to Realm Tab and follow the dialog to create any realm-application Select the functions tab from the left side menu Switch to Dependencies and Click the Add Dependency Add the lib / npm module - it will try to install and then gives the following error (bottom left)

image

Version

1.17.1

What environment are you running pdf-lib in?

Node, Other

Checklist

  • [X] My report includes a Short, Self Contained, Correct (Compilable) Example.
  • [X] I have attached all PDFs, images, and other files needed to run my SSCCE.

Additional Notes

node-serverless environment with mongo-db realm

saurav2799 avatar Dec 06 '21 18:12 saurav2799