You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Sequelize is not a constructor
at Object. (C:\Users\sbpat\Code\emerson-bootcamp\super-hero-repo\models\index.js:10:18)
at Module._compile (internal/modules/cjs/loader.js:1176:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
at Module.load (internal/modules/cjs/loader.js:1040:32)
at Function.Module._load (internal/modules/cjs/loader.js:929:14)
at Module.require (internal/modules/cjs/loader.js:1080:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (C:\Users\sbpat\Code\emerson-bootcamp\super-hero-repo\controllers\heroes.js:2:16)
at Module._compile (internal/modules/cjs/loader.js:1176:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
let connection = new Sequelize({
dialect: 'mssql',
dialectModulePath: 'sequelize-msnodesqlv8',
dialectOptions: {
driver: 'SQL Server Native Client 10.0',
instanceName: 'LAPTOP-8PISJ86I\SQLEXPRESS',
trustedConnection: true
},
host: 'localhost',
database: 'heroes'
})
The text was updated successfully, but these errors were encountered:
let connection = new Sequelize({
^
TypeError: Sequelize is not a constructor
at Object. (C:\Users\sbpat\Code\emerson-bootcamp\super-hero-repo\models\index.js:10:18)
at Module._compile (internal/modules/cjs/loader.js:1176:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
at Module.load (internal/modules/cjs/loader.js:1040:32)
at Function.Module._load (internal/modules/cjs/loader.js:929:14)
at Module.require (internal/modules/cjs/loader.js:1080:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (C:\Users\sbpat\Code\emerson-bootcamp\super-hero-repo\controllers\heroes.js:2:16)
at Module._compile (internal/modules/cjs/loader.js:1176:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
let connection = new Sequelize({
dialect: 'mssql',
dialectModulePath: 'sequelize-msnodesqlv8',
dialectOptions: {
driver: 'SQL Server Native Client 10.0',
instanceName: 'LAPTOP-8PISJ86I\SQLEXPRESS',
trustedConnection: true
},
host: 'localhost',
database: 'heroes'
})
The text was updated successfully, but these errors were encountered: