79527020

Date: 2025-03-22 06:13:49
Score: 2
Natty:
Report link

i face lot of regarding this and finally i can fix this using above answer. In my case in the models/user I had written module.export leaving out the s at the end When you run the code it then gives you that error I would advice checking on your module.exports = mongoose.model('User', UserSchema) spellings

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Chandures Priyavindya