Been working on this for a few hours now, pretty frustrating...
router.post(\'/\', passport.authenticate(\'local-signup\', function(err, user, info) { co
In my case I just miss spelled usernameField as usernameFiled.
usernameField
usernameFiled
Make sure you spell correctly usernameField and passwordField.
passwordField