-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
registerAsync + global does not work #349
Labels
bug
Something isn't working
Comments
@kamilmysliwiec Thanks! useFactory?: (...args: any[]) => Promise<CacheModuleOptions> | CacheModuleOptions; CacheModuleOptions has isGlobal when using registerAsync, I noticed you closed but do you think the type is worth fixing? |
Oh yeah it is! Would you like to create a PR? |
JacobSiegle
added a commit
to JacobSiegle/cache-manager
that referenced
this issue
Mar 25, 2024
Reused type CacheModuleOptions causing isGlobal to leak incorrectly into async options. nestjs#349
JacobSiegle
added a commit
to JacobSiegle/cache-manager
that referenced
this issue
Mar 25, 2024
Reused type CacheModuleOptions causing isGlobal to leak incorrectly into async options. nestjs#349
JacobSiegle
added a commit
to JacobSiegle/cache-manager
that referenced
this issue
Mar 25, 2024
Reused type CacheModuleOptions causing isGlobal to leak incorrectly into async options. nestjs#349
12 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Current behavior
The modules providers are not found even though the module is specified as global.
Minimum reproduction code
https://stackblitz.com/edit/nestjs-typescript-starter-j7sze2?file=src%2Fapp.module.ts&terminal=start
Steps to reproduce
Stackblitz -
Error: Nest can't resolve dependencies of the SubService (?). Please make sure that the argument "CACHE_MANAGER" at index [0] is available in the SubModule context.
Potential solutions:
@module({
imports: [ /* the Module containing "CACHE_MANAGER" */ ]
})
Expected behavior
The modules providers work like register
Package version
2.2.1
NestJS version
10.3.1
Node.js version
18
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: