Open aniketmule opened 5 years ago
The file has to be there /models/User.js. or you ca rename the file
File name is case sensitive . in your "config/passport.js" file.(user instead of User) Change line 6 to: const User = require('../models/user');
Do the same thing in line 6 of: "routes/users.js"
Upon running I get the following error. Had to change filename /models/user.js to /models/User.js