and Finally my app.module.ts :
import { Module } from '@nestjs/common';
import { GoogleStrategy } from './Oauth/google.strategy';
import { OAuthService } from './Oauth/auth.service';
import { AuthController } from './Oauth/auth.controller';
import { HttpModule } from '@nestjs/axios';
import { ActionsService } from './actions/actions.service';
import { ReactionService } from './reactions/reaction.strategy';
import { TwitterActionsService } from "./actions/twitter/twitter.actions.service";
import { FlightService } from './actions/flight/flight.service';
import { GoogleActionsService } from './actions/google/google.actions.service';
import { AuthService } from './auth/auth.service';
import { LocalStrategy } from './auth/local.strategy';
import { PassportModule } from '@nestjs/passport';
import { JwtModule, JwtService } from '@nestjs/jwt';
import { JwtStrategy } from './auth/jwt.strategy';
import { AreaService } from './area/area.service';
import { ServicesService } from './services/services.service';
import { ProviderModule } from './providers/provider.module';
import { UserModule } from './user/user.module';
@Module({
imports: [
ConfigModule.forRoot(),
HttpModule,
PassportModule,
JwtModule.register({secret: process.env.SECRET}),
ProviderModule,
UserModule
],
controllers: [AppController, userController, AuthController],
providers: [AppService, UserService, PrismaService,
GoogleStrategy, LocalStrategy, OAuthService, ReactionService,
ActionsService, TwitterActionsService,
GoogleReactionsService, GoogleActionsService, DiscordReactionsService,
FlightService, AuthService, JwtService, JwtStrategy, AreaService,
ServicesService],
})
export class AppModule {}
I know that the appModule is a mess, i'm trying to clean up by adding modules.
Do you have any Idea on what I did wrong ?