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
{
"name": "TypeError",
"message": "Class constructor Model cannot be invoked without 'new'",
"stack": "TypeError: Class constructor Model cannot be invoked without 'new'\n at new User (/lib/models/User.js:10:17)\n at Function.build (/node_modules/sequelize/lib/model.js:1937:12)\n at Function.create (/node_modules/sequelize/lib/model.js:1988:17)\n at UserController.signup (/driveddy/lib/controllers/UserActionController.js:33:34)\n at /lib/routes/userActions.js:36:32\n at dispatch (/node_modules/koa-compose/index.js:44:32)\n at next (/node_modules/koa-compose/index.js:45:18)\n at /node_modules/koa-router/lib/router.js:345:16\n at dispatch (/node_modules/koa-compose/index.js:44:32)\n at /node_modules/koa-compose/index.js:36:12\n at dispatch (/node_modules/koa-router/lib/router.js:350:31)\n at dispatch (/node_modules/koa/node_modules/koa-compose/index.js:42:32)\n at next (/node_modules/koa/node_modules/koa-compose/index.js:43:18)\n at parseBody.then.body (/node_modules/koa-bodyparser/index.js:74:14)\n at <anonymous>\n at process._tickCallback (internal/process/next_tick.js:188:7)",
"status": 500
}
What are you doing?
When I try to create a record for
User
I get the following issue.Im using flow for typeing and bable for converting
My babel config
My Model
What do you expect to happen?
Creating a database record
What is actually happening?
Error see below
Output, either JSON or SQL
Dialect: postgres
Dialect version: "pg": "^7.4.0",
Database version: ?
Sequelize version: 4.26.0
Tested with latest release: YES
Note : I have tried this: #7840 and this #7840
The text was updated successfully, but these errors were encountered: