The Best Buy API Playground is an API training tool for students, educators and other learners to explore the possibilities of a fully functional RESTful API in a simple, non-production environment.
Other
259
stars
104
forks
source link
New error - sequelize.import is not a function while npm start #26
D:\BestBuyAPI\api-playground\src\db\index.js:36
var model = sequelize['import'](path.join(__dirname, file));
^
TypeError: sequelize.import is not a function
at D:\BestBuyAPI\api-playground\src\db\index.js:36:38
at Array.forEach ()
at Function.setupDatabase (D:\BestBuyAPI\api-playground\src\db\index.js:35:6)
at Function.configure (D:\BestBuyAPI\api-playground\node_modules\feathers\lib\application.js:150:8)
at Function.module.exports (D:\BestBuyAPI\api-playground\src\services\index.js:11:7)
at Function.configure (D:\BestBuyAPI\api-playground\node_modules\feathers\lib\application.js:150:8)
at Object. (D:\BestBuyAPI\api-playground\src\app.js:31:4)
at Module._compile (node:internal/modules/cjs/loader:1109:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
at Module.load (node:internal/modules/cjs/loader:989:32)
Getting Below error while performing npn start
D:\BestBuyAPI\api-playground>npm start
D:\BestBuyAPI\api-playground\src\db\index.js:36 var model = sequelize['import'](path.join(__dirname, file)); ^
TypeError: sequelize.import is not a function at D:\BestBuyAPI\api-playground\src\db\index.js:36:38 at Array.forEach ()
at Function.setupDatabase (D:\BestBuyAPI\api-playground\src\db\index.js:35:6)
at Function.configure (D:\BestBuyAPI\api-playground\node_modules\feathers\lib\application.js:150:8)
at Function.module.exports (D:\BestBuyAPI\api-playground\src\services\index.js:11:7)
at Function.configure (D:\BestBuyAPI\api-playground\node_modules\feathers\lib\application.js:150:8)
at Object. (D:\BestBuyAPI\api-playground\src\app.js:31:4)
at Module._compile (node:internal/modules/cjs/loader:1109:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
at Module.load (node:internal/modules/cjs/loader:989:32)