mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Fallback to 'require' if on node < 12.17
This commit is contained in:
@@ -494,7 +494,7 @@ module.exports = function(RED) {
|
||||
node.error(err);
|
||||
}
|
||||
}).catch(err => {
|
||||
throw new Error(RED._("function.error.externalModuleLoadError"));
|
||||
node.error(RED._("function.error.externalModuleLoadError"));
|
||||
});
|
||||
}
|
||||
RED.nodes.registerType("function",FunctionNode, {
|
||||
|
Reference in New Issue
Block a user