node.js - Getting type error with Sequelizejs -


im getting following error , can't figure out through stack trace it's erroring.

/users/rahulsharma/desktop/jobletics/node_modules/sequelize/lib/sequelize.js:298       this.importcache[path] = definecall(this, datatypes)                                ^ typeerror: object not function     @ module.exports.sequelize.import (/users/ra/desktop/js/node_modules/sequelize/lib/sequelize.js:298:32)     @ db.sequelize (/users/ra/desktop/js/models/index.js:14:33)     @ array.foreach (native)     @ object.<anonymous> (/users/ra/desktop/js/models/index.js:13:4)     @ module._compile (module.js:456:26)     @ object.module._extensions..js (module.js:474:10)     @ module.load (module.js:356:32)     @ function.module._load (module.js:312:12)     @ module.require (module.js:364:17)     @ require (module.js:380:17) 

here git:

https://github.com/rahul1346/jb

any idea?

business_model.js empty file.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -