본문 바로가기

Coding/내일배움캠프

[내일배움캠프] 트렐로 7일차 | Node.js 4기 | Day 80 | 24.03.24.(일)

1. unable to connect database

 

 

 

계속 오류가 발생했었던 이유는, comment 관련된 모든 코드가 app.module.ts, typeOrmModuleOptions에서 주석 처리가 되어 있었기 때문이다.

 

 

주석 처리를 해제해줬더니, 해당 오류는 해결되었으나 새로운 오류를 맞이했다.

 

2. Nest can't resolve dependencies of the RoleGuard (Reflector, ?).

 

 

3.

 

Error [ExceptionHandler] Classes annotated with @Injectable(), @Catch(), and @Controller() decorators must not appear in the “imports” array of a module. Please remove “RoleStrategy” (including forwarded occurrences, if any) from all of the “imports” arrays.

 

Scope [AppModule -> CommentModule]