0
I’m having trouble solving the issue below where the message appears "Typeerror: expressValidator is not a Function"
var express = require('express');
var consign = require('consign');
var bodyParser = require('body-parser');
var expressValidator = require('express-validator');
var app = express();
app.set('view engine', 'ejs');
app.set('views', './app/views');
app.use(bodyParser.urlencoded({extended: true}));
app.use(expressValidator());
consign()
.include('app/routes')
.then('config/dbConnection.js')
.then('app/models')
.into(app);
module.exports = app
I’m sorry, I hadn’t read the Validator documentation, I’ll change the answer.
– Claudio H. Yoshii
Whoa, buddy, it’s all right now?
– Claudio H. Yoshii
It worked @Claudio H. Yoshii
– Bruno Ferreira