express-validation default is not function error code example
Example: validationResult is not defined
const { check, validationResult } = require('express-validator/check');
// or:
const check = require('express-validator/check').check;
const validationResult = require('express-validator/check').validationResult;