Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Installation (MongoDB Realm Node Serverless) #1107

Open
2 tasks done
saurav2799 opened this issue Dec 6, 2021 · 0 comments
Open
2 tasks done

Error on Installation (MongoDB Realm Node Serverless) #1107

saurav2799 opened this issue Dec 6, 2021 · 0 comments

Comments

@saurav2799
Copy link

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

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

Additional Notes

node-serverless environment with mongo-db realm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant