I’m trying to require a mudule in a Function node using JS.
At first I received the error “Access denied to require aws-sdk” until I solved it by setting the environment variable “NODE_FUNCTION_ALLOW_EXTERNAL” with the value “aws-sdk”.
Everything worked fine until I needed to require a different module in a different node.
I tried to set multiple values to the variable by changing the value to “aws-sdk;fs;” but this didn’t do the trick. Seems like it doesn’t accept multiple values.
I want to be able to require modules in function nodes. What’s the correct way to do that and pass the “Access denied to require” error?