I just tried to install an external module and use it within a function node, following the docs:
- within the function editor, I configured the external module (
javascript-interface-library -> JIL
) - verified that
functionExternalModules
was set to true in mysettings.js
file and - deployed without errors
The logs said
24 Nov 06:51:22 - [info] Modul wird installiert: javascript-interface-library, Version: latest
24 Nov 06:51:24 - [info] Installiertes Modul: javascript-interface-library
24 Nov 06:51:24 - [info] Flows werden gestartet
24 Nov 06:51:24 - [info] Flows sind gestartet
But, surprisingly, I could not find the folder ~/.node-red/externalModules/
mentioned in the docs - are they wrong here?
In the function node, I tried
const { ValueIsNonEmptyString } = JIL
return msg;
but that crashed with the message
TypeError: Cannot destructure property 'ValueIsNonEmptyString' of 'JIL' as it is undefined.
Does anybody know what is going wrong here?
Thanks in advance for any help!
Amendment:
- I am using the latest Node-RED 3.1 (installed approx. 3 days ago)
node --version
saysv21.2.0
externalModules
in mysettings.js
is empty (i.e., set to defaults)