As per https://github.com/chriso/validator.js/issues/505 the method is deprecated It will throw : TypeError: _validator2.default.isNull is not a function Must be replaced by isEmpty()