-
Notifications
You must be signed in to change notification settings - Fork 81
Description
:245:13
internal/validators.js:125
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
at validateString (internal/validators.js:125:11)
at Object.dirname (path.js:646:5)
at Sequelize.import (webpack:///./node_modules/sequelize/lib/sequelize.js?:390:31)
at Object.exports.getModels (webpack:///./models/db.tables.ts?:7:35)
at eval (webpack:///./src/app.ts?:44:23)
at Object../src/app.ts (D:\Playground\Nodejs\typescript-node\build\main.js:10372:1)
at webpack_require (D:\Playground\Nodejs\typescript-node\build\main.js:20:30)
at eval (webpack:///./src/server.ts?:4:13)
at Object../src/server.ts (D:\Playground\Nodejs\typescript-node\build\main.js:10384:1)
at webpack_require (D:\Playground\Nodejs\typescript-node\build\main.js:20:30)
at D:\Playground\Nodejs\typescript-node\build\main.js:84:18
at Object. (D:\Playground\Nodejs\typescript-node\build\main.js:87:10)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:829:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
[nodemon] app crashed - waiting for file changes before starting...
can anyone provide solution for this