import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Shops } from 'src/entities/shops.entity';
import { ShopsController } from './shops.controller';
import { ShopsService } from './shops.service';
@Module({
imports: [TypeOrmModule.forFeature([Shops])],
controllers: [ShopsController],
providers: [ShopsService],
})
export class ShopsModule {}
이렇게 작성을 하였는데
webpack 5.72.1 compiled successfully in 137 ms [Nest] 10891 - 2022. 06. 23. 오후 6:55:30 LOG [NestFactory] Starting Nest application... [Nest] 10891 - 2022. 06. 23. 오후 6:55:30 LOG [InstanceLoader] TypeOrmModule dependencies initialized +38ms [Nest] 10891 - 2022. 06. 23. 오후 6:55:30 LOG [InstanceLoader] PassportModule dependencies initialized +0ms [Nest] 10891 - 2022. 06. 23. 오후 6:55:30 ERROR [ExceptionHandler] Nest can't resolve dependencies of the ShopsService (ShopsRepository, ?). Please make sure that the argument UsersRepository at index [1] is available in the ShopsModule context. Potential solutions: - If UsersRepository is a provider, is it part of the current ShopsModule? - If UsersRepository is exported from a separate @Module, is that module imported within ShopsModule? @Module({ imports: [ /* the Module containing UsersRepository */ ] }) 이렇게 에러가 나네요.. 도저히 모르겠어서 질문드립니다.