is a provider, is it part of the current DatabaseModule?
- If Sequelize is exported from a separate @Module, is that module imported within DatabaseModule?
@Module({
imports: [ /* the Module containing Sequelize */ ]
})
Error: Nest can't resolve dependencies of the DatabaseModule (?). Please make sure that the argument Sequelize at index [0] is available in the DatabaseModule context.
Potential solutions:
- Is DatabaseModule a valid NestJS module?
- If Sequelize is a provider, is it part of the current DatabaseModule?
- If Sequelize is exported from a separate @Module, is that module imported within DatabaseModule?
@Module({
imports: [ /* the Module containing Sequelize */ ]
})
at Injector.lookupComponentInParentModules (/home/maximous/Desktop/nest-app/node_modules/@nestjs/core/injector/injector.js:247:19)
at Injector.resolveComponentInstance (/home/maximous/Desktop/nest-app/node_modules/@nestjs/core/injector/injector.js:200:33)
at resolveParam (/home/maximous/Desktop/nest-app/node_modules/@nestjs/core/injector/injector.js:120:38)
at async Promise.all (index 0)
at Injector.resolveConstructorParams (/home/maximous/Desktop/nest-app/node_modules/@nestjs/core/injector/injector.js:135:27)
at Injector.loadInstance (/home/maximous/Desktop/nest-app/node_modules/@nestjs/core/injector/injector.js:61:13)
at Injector.loadProvider (/home/maximous/Desktop/nest-app/node_modules/@nestjs/core/injector/injector.js:88:9)
at /home/maximous/Desktop/nest-app/node_modules/@nestjs/core/injector/instance-loader.js:56:13
at async Promise.all (index 0)
at InstanceLoader.createInstancesOfProviders (/home/maximous/Desktop/nest-app/node_modules/@nestjs/core/injector/instance-loader.js:55:9)
Пробовал по доке сделать? https://docs.nestjs.com/recipes/sql-sequelize
отдай это на пороку докера
так правильно ?
Обсуждают сегодня