G
G
Gleb Sugak2019-06-23 14:54:52
Node.js
Gleb Sugak, 2019-06-23 14:54:52

How to fix expressValidator is not a function error?

The following lines cause an error:
var expressValidator = require('express-validator');
app.use(expressValidator());
Error: TypeError: expressValidator is not a function
Please help me with this error. express and express-validator I connected, but still an error.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
de1m, 2019-06-23
@de1m

In my opinion, you are somehow preparing it incorrectly, here it is written differently.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question