diff --git a/src/app.ts b/src/app.ts index f036136..fb646dd 100644 --- a/src/app.ts +++ b/src/app.ts @@ -3,6 +3,7 @@ import express from 'express'; import consola from 'consola'; import * as jwt from 'jsonwebtoken'; import { createConnection } from 'typeorm'; +import 'reflect-metadata'; dotenvSafe.config(); const app = express(); diff --git a/tsconfig.json b/tsconfig.json index b569d8b..dc76995 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,8 @@ "rootDir": "./src", "outDir": "./build", "esModuleInterop": true, - "strict": true + "strict": true, + "experimentalDecorators": true, + "emitDecoratorMetadata":true } } \ No newline at end of file