I am seeing that the instanceof operator doesn\'t work on instances of Error subclasses, when running under babel-node version 6.1.18/Node version
instanceof
Error
instanceof will not work for subclassed errors if the compile target is set to "es5". I set the target to "es6" in my tsconfig.json and instanceof produced the right result.
tsconfig.json