"validationResult is not a function" t with version "6.1.1"

Is there any way to avoid below errors with out installing version “5.3.1”
const {check,validationResult } = require(‘express-validator’);
let errors = validationResult(req);

i got the error: validationResult is not a function"

1 Like

Hey, can you post the contents of your package.json?

2 Likes

thanks, solved

2 Likes