Report this

What is the reason for this report?

Using lib folder with digitalocean functions

Posted on May 3, 2024

Created a project using following command: doctl serverless init --language js example-project

I am following this link to use the lib into my digitalocean functions https://docs.digitalocean.com/products/functions/reference/build-process/#lib-references

The deployment is successful, but when calling the function getting error: function can’t be initialized and I have boiled it down that if I use functions from lib/ it causes the error.

  • The code is working fine with node.js import

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.