작성
·
39
0
itialized +6ms
📦 Loaded Entities: [
'Image',
'Vote',
'Like',
'Post',
'Comment',
'User',
'UserVote',
'VoteOption'
]
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RoutesResolver] PostController {/posts}: +92ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/posts, GET} route +16ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/posts/my, GET} route +15ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/posts/user/:id, GET} route +8ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/posts/search, GET} route +1ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/posts/:id, GET} route +1ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/posts, POST} route +2ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/posts/:id, PATCH} route +4ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/posts/:id, DELETE} route +1ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/posts/:postId/vote/:voteOptionId, POST} route +4ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RoutesResolver] AuthController {/auth}: +1ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/auth/signup, POST} route +2ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/auth/signin, POST} route +1ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/auth/me, GET} route +1ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/auth/me, PATCH} route +0ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/auth/:id, GET} route +1ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RoutesResolver] ImageController {/images}: +1ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/images, POST} route +1ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RoutesResolver] CommentController {/comments}: +1ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/comments, POST} route +1ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/comments/:id, DELETE} route +2ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RoutesResolver] LikeController {/likes}: +0ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/likes, GET} route +1ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/likes/:postId, POST} route +6ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RoutesResolver] NotificationController {/notification}: +1ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/notification, POST} route +1ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RoutesResolver] AvatarController {/avatar}: +2ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [RouterExplorer] Mapped {/avatar/:type, GET} route +8ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:11 LOG [NestApplication] Nest application successfully started +22ms
[Nest] 27196 - 2025. 07. 20. 오후 6:58:18 ERROR [ExceptionsHandler] No metadata for "User" was found.
EntityMetadataNotFoundError: No metadata for "User" was found.
at DataSource.getMetadata (c:\community\server\server\node_modules\typeorm\data-source\src\data-source\DataSource.ts:450:30)
at Repository.get metadata (c:\community\server\server\node_modules\typeorm\repository\src\repository\Repository.ts:53:40)
at Repository.count (c:\community\server\server\node_modules\typeorm\repository\src\repository\Repository.ts:487:40)
at AuthService.signup (c:\community\server\server\src\auth\auth.service.ts:38:50)
at async c:\community\server\server\node_modules\@nestjs\core\router\router-execution-context.js:46:28
at async c:\community\server\server\node_modules\@nestjs\core\router\router-proxy.js:9:17
[Nest] 27196 - 2025. 07. 20. 오후 6:58:18 LOG [HTTP] [POST] /auth/signup (500) (okhttp/4.12.0)
이렇게 오류가나는데 혹시나해서 백엔드 소스코드 자료에서 User도 등록이 되는지 로그찍어봤는데 되있더라구여
회원가입 버튼을 누를때 이 에러가 뜨더라구여..
답변 1
0
강사님 해결했습니다..
보니까 tsconfig.json 폴더에 baseUrl:"./"
이렇게 설정되있더라고여 각 각 ORM 매핑할때 src/....... 이런부분들 다 에러가 떠서 ../이런식으로 수정했고
앱모듈에 엔티티 경로 지정 하셔서
autoLoadEntities: true,
이성설정 하니까 바로 되더라고여 에러찾는데 3시간 넘게 걸린거 같네요