-3

enter image description here

enter image description here

How to fix it?

Ganiev
  • 1

1 Answers1

0

I feel like your Imports are not handled correctly. Please take a look into the sequelize Docs to verify that you have installed and imported everything accordingly. https://sequelize.org/master/manual/getting-started.html

I feel like you cant just require(/db) - or is your sequelize set up in a different file?

The Error tells you that it cant find the Module /db so the import has to be wrong.

yesIamFaded
  • 1,970
  • 2
  • 20
  • 45
  • But why crashed nodemon? – Ganiev Oct 26 '21 at 10:19
  • about db nodemon crashed and before its creation, I thought that everything would be fixed if I run it together with the database, but I was wrong – Ganiev Oct 26 '21 at 10:22
  • nodemon crashes because it cant run your setup. Either your import is wrong or the way you setup sequelize. I cant tell you because I dont know your folder structure or the code you used for the db. – yesIamFaded Oct 26 '21 at 10:27