You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue doesn't seem to been resolved on nestjs@9.
UnknownDependenciesException [Error]: Nest can't resolve dependencies of the ImportedService (?). Please make sure that the argument GLOBAL at index [0] is available in the ImportedModule context.
Potential solutions:
- Is ImportedModule a valid NestJS module?
- If GLOBAL is a provider, is it part of the current ImportedModule?
- If GLOBAL is exported from a separate @Module, is that module imported within ImportedModule?
@Module({
imports: [ /* the Module containing GLOBAL */ ]
})
Is there an existing issue for this?
Current behavior
This issue doesn't seem to been resolved on nestjs@9.
Minimum reproduction code
https://github.com/5d-jh/nest-lazy
Steps to reproduce
Expected behavior
Nest should inject value
hi
toImportedService
, resulting to printhi
on console.Package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
No response
NestJS version
9.4.3
Packages versions
Node.js version
18.18.2
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: