ethan0905 / ft_transcendence

Wiki with step-by-step explained strategy on how to: create app (front+back+infra), 42auth, 2FA and more..
2 stars 0 forks source link

error when adding mderome's files #28

Closed ethan0905 closed 1 year ago

ethan0905 commented 1 year ago
backend_nestjs    | [Nest] 373  - 04/11/2023, 3:07:21 PM   ERROR [ExceptionHandler] Nest can't resolve dependencies of the ChatGateway (ChatService, PrismaClient, ?). Please make sure that the argument UserService at index [2] is available in the ChatModule context.
backend_nestjs    | 
backend_nestjs    | Potential solutions:
backend_nestjs    | - Is ChatModule a valid NestJS module?
backend_nestjs    | - If UserService is a provider, is it part of the current ChatModule?
backend_nestjs    | - If UserService is exported from a separate @Module, is that module imported within ChatModule?
backend_nestjs    |   @Module({
backend_nestjs    |     imports: [ /* the Module containing UserService */ ]
backend_nestjs    |   })
backend_nestjs    | 
backend_nestjs    | Error: Nest can't resolve dependencies of the ChatGateway (ChatService, PrismaClient, ?). Please make sure that the argument UserService at index [2] is available in the ChatModule context.
backend_nestjs    | 
backend_nestjs    | Potential solutions:
backend_nestjs    | - Is ChatModule a valid NestJS module?
backend_nestjs    | - If UserService is a provider, is it part of the current ChatModule?
backend_nestjs    | - If UserService is exported from a separate @Module, is that module imported within ChatModule?
backend_nestjs    |   @Module({
backend_nestjs    |     imports: [ /* the Module containing UserService */ ]
backend_nestjs    |   })
backend_nestjs    | 
backend_nestjs    |     at Injector.lookupComponentInParentModules (/app/node_modules/@nestjs/core/injector/injector.js:247:19)
backend_nestjs    |     at Injector.resolveComponentInstance (/app/node_modules/@nestjs/core/injector/injector.js:200:33)
backend_nestjs    |     at resolveParam (/app/node_modules/@nestjs/core/injector/injector.js:120:38)
backend_nestjs    |     at async Promise.all (index 2)
backend_nestjs    |     at Injector.resolveConstructorParams (/app/node_modules/@nestjs/core/injector/injector.js:135:27)
backend_nestjs    |     at Injector.loadInstance (/app/node_modules/@nestjs/core/injector/injector.js:61:13)
backend_nestjs    |     at Injector.loadProvider (/app/node_modules/@nestjs/core/injector/injector.js:88:9)
backend_nestjs    |     at /app/node_modules/@nestjs/core/injector/instance-loader.js:49:13
backend_nestjs    |     at async Promise.all (index 3)
backend_nestjs    |     at InstanceLoader.createInstancesOfProviders (/app/node_modules/@nestjs/core/injector/instance-loader.js:48:9)
backend_nestjs    | Environment variables loaded from .env
backend_nestjs    | Prisma schema loaded from prisma/schema.prisma
backend_nestjs    | Datasource "db": PostgreSQL database "mydb", schema "public" at "postgres:5432"
backend_nestjs    | 
backend_nestjs    | 34 migrations found in prisma/migrations
backend_nestjs    | 
backend_nestjs    | Error: P3005
backend_nestjs    | 
backend_nestjs    | The database schema is not empty. Read more about how to baseline an existing production database: https://pris.ly/d/migrate-baseline
backend_nestjs    | 
backend_nestjs exited with code 1