From f9d686cb4c9a17e6f262465862a520a40cd03be6 Mon Sep 17 00:00:00 2001 From: Smarthard Date: Sun, 26 Jul 2020 23:51:01 +0300 Subject: [PATCH] fix for error "Class constructor Model cannot be invoked without 'new'" See: https://github.com/sequelize/sequelize/issues/7840#issuecomment-317212324 --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 930ce8e..2b1c270 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,7 @@ "moduleResolution": "Node", "outDir": "./dist/", "resolveJsonModule": true, - "target": "es5", + "target": "es6", "sourceMap": true, /* Strict Type-Checking Options */