Is functionExternalModules set to true in your settings.js.
Writing Functions : Node-RED.
Also you can use JSONata in the function node see here
Is functionExternalModules set to true in your settings.js.
Writing Functions : Node-RED.
Also you can use JSONata in the function node see here