ENONET no such file... error when want to read a file

If you don’t require a file, netlify-lambda will not bundle it. You’ll want to self-zip your function like this: function-deploy-test/package.json at master · netlify/function-deploy-test · GitHub. From there, you should be able access your file like: function-deploy-test/zipped-function.js at master · netlify/function-deploy-test · GitHub.

Let me know if that helps.