Back-end/NestJS
-
EntityMetadataNotFoundError: No metadata for "~" was found. 문제 해결Back-end/NestJS 2024. 8. 4. 13:10
주말을 이용해 팀 블로그를 만들 겸 해서 간단하게 만들어보다가 EntityMetadataNotFoundError가 발생했다. 문제 Post 요청에 의해서 postman에서 날린 email, username, password는 찍히는데 이 후 try catch 문에서 catch로 계속 빠지고 있었고, 그 이유가 EntityMetadataNotFoundError 였다. 해결TypeORM config를 작성해놓은 파일에서 찾지 못한다고 하는 것을 추가해주니 잘 작동했다. AS-ISreturn { ..., entities: [__dirname + '/../**/*.entity.{js,ts}']} TO-BEreturn { ..., entities: [__dirname + '/../**/*.entity.{js,t..