I already deployed my own node N which contains a library L.
Can I access L out of a Function-node? If yes, how can I do that?
I already deployed my own node N which contains a library L.
Can I access L out of a Function-node? If yes, how can I do that?
Have you tried?
The functions in a custom node are not directly available to the function node because that wraps the function code in a Node.js "virtual machine".
So you will need to load the module containing the function using the method that Steve has suggested. It is easier though to have your common functions in their own package so that you only need to require that package and not try to reload the whole node package - not entirely sure what the impact of that will be - it could be that it still won't give you access to the function you want unless you have structured the export in the node module correctly.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.