"typeerror: Cannot Read Property 'create' Of Undefined"
I'm building a simple site that handles users using Passport.js. I can run my server but when a user submits their signup information it spits out 'TypeError: Cannot read property
Solution 1:
You should correct a registration process of models:
.forEach((file) => {
const modelFile = path.join(__dirname, file);
const model = sequelize['import'](modelFile)
db[model.name] = model;
})
Post a Comment for ""typeerror: Cannot Read Property 'create' Of Undefined""