Closed matiasgarcia closed 5 months ago
Thank you for taking the time to submit your report! From the looks of it, this could be better discussed on our Discord. If you haven't already, please join here and send a new post in the # 🐈 nestjs-help forum. Make sure to include a link to this issue, so you don't need to write it all again. We have a large community of helpful members, who will assist you in getting this to work.
Is there an existing issue for this?
Current behavior
I have the following code that configures CacheModule with an in-memory or redis store depending on the environment variable configuration.
When driver is redis, I get the following stack trace:
Simplifying the
useFactory
function to always create redis, I get this error:Libs:
Minimum reproduction code
https://github.com/matiasgarcia/nestjs-advanced-architecture
Steps to reproduce
No response
Expected behavior
Should work
Package version
2.2.1
NestJS version
9.4.1
Node.js version
20.9.0
In which operating systems have you tested?
Other
No response