have repo
https://github.com/stephyswe/wanago-2024-aug
using wanagos tutorial at https://wanago.io/2020/05/18/api-nestjs-postgresql-typeorm/
i get error
[Nest] 20262 - 08/02/2024, 5:57:06 PM ERROR [ExceptionHandler] Nest can't resolve dependencies of the PostsService (?). Please make sure that the argument "PostRepository" at index [0] is available in the PostsModule context.
Potential solutions:
- Is PostsModule a valid NestJS module?
- If "PostRepository" is a provider, is it part of the current PostsModule?
- If "PostRepository" is exported from a separate @Module, is that module imported within PostsModule?
@Module({
imports: [ /* the Module containing "PostRepository" */ ]
})
Error: Nest can't resolve dependencies of the PostsService (?). Please make sure that the argument "PostRepository" at index [0] is available in the PostsModule context.
- API with NestJS #1. Controllers, routing and the module structure 2. API with NestJS #2. Setting up a PostgreSQL database with TypeORM 3. API with NestJS #3. Authenticating users with bcrypt, Passport, JWT, and cookies 4. API with NestJS #4. Error handling and data validation 5. API with NestJS #5. Serializing the response with […]