-
Hello, I get an error while calling
I am creating it using just like the example in master branch shows: //my snippet
const storage = new SequelizeStorage({ sq }); I tried using format
{
"type": "module",
"dependencies": {
"mariadb": "^3.0.0",
"sequelize": "^6.20.1"
},
"devDependencies": {
"dotenv": "^16.0.1",
"umzug": "^3.1.1"
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Maybe I’m missing something, but it seems you aren’t creating it like the example. You’re passing |
Beta Was this translation helpful? Give feedback.
Maybe I’m missing something, but it seems you aren’t creating it like the example. You’re passing
{ sq }
to the constructor and the example passes{ sequelize }
- that’s what the error message is saying too. If your sequelize instance is namedsq
, you could usenew SequelizeStorage({ sequelize: sq })
.