How to fix it?
Asked
Active
Viewed 96 times
-3
-
Can you show us the Code where you import the db in your index file? – yesIamFaded Oct 26 '21 at 09:55
-
https://i.stack.imgur.com/ld1qG.png – Ganiev Oct 26 '21 at 09:58
-
When you ask questions try to actually put the code in instead of giving us screenshots of your code., – yesIamFaded Oct 26 '21 at 10:07
-
сode takes up a lot of space – Ganiev Oct 26 '21 at 10:20
-
2Please provide enough code so others can better understand or reproduce the problem. – Community Oct 26 '21 at 12:25
1 Answers
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
-
-
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