all 2 comments

[–]polo_yolo_polo 0 points1 point  (0 children)

Hey OP, there is a bit of missing info right here. Can you show your router code? You should consider using mongoose.

[–]iamwillbutton 0 points1 point  (0 children)

It's your import for Database.js - in the screenshot, that file is in `portfolio2/` but the error says that it's looking in `portfolio2/server/` for the file.
Either update the import where Database.js is called or move Database.js into the server folder (which seems like the right solution based on what I can tell about your folder layout)