Oh hang on!
try this.
function RedisConfig(n) {
RED.nodes.createNode(this, n);
this.name = n.name;
this.cluster = n.cluster;
if (this.optionsType === "") {
this.options = n.options;
} else {
RED.util.evaluateNodeProperty(n.options, n.optionsType,this,undefined,(err,value) => {
if(!err) {
this.options = value
}
});
}
}
RED.nodes.registerType("redis-config", RedisConfig);
it was treating the callback as an msg - and not a callback
This might not stop the child nodes trying to use the Config too early, but that is a different problem if that still continues.
example:
3 Dec 14:20:37 - [error] [redis-config:Cluster] Missing options in the redis config - Are you upgrading from old version?
So you might need to address that also
Remember to restart Node RED