I had a similar issue , the issue was i had named my file as comments-entity.ts instead of comments.entity.ts.