Closed anassarfraz closed 11 months ago
Now you must use it in this way, note that Redis is imported from the 'ioredis' library.
@juandav thanks for response
I resolved this issue with remove ^
sign from version number
("@nestjs-modules/ioredis": "^1.0.1", -------> "@nestjs-modules/ioredis": "1.0.1").
@anassarfraz Although you could use the new version of @nestjs-modules/ioredis, version 2.0.1.
@juandav yes i used newer version but i got more errors because my nestjs Version 7.0.0 new i am shifting my project to updated packages. thanks
Issue with Redis module export after reinstalling
node_modules
Overview
After deleting th
node_modules
directory and reinstalling it usingnpm i --force
, I encountered an issue with the Redis module in@nestjs-modules/ioredis
. The specific error is as follows:Steps to Reproduce
Expected Behavior
I expected the project to run successfully without any issues related to the
@nestjs-modules/ioredis module
.Current Behavior
The project fails to compile with the mentioned TypeScript error regarding the missing exported member 'Redis' in
@nestjs-modules/ioredis
.Environment
v18.18.2
]9.8.1
]@nestjs-modules/ioredis version
"@nestjs-modules/ioredis": "^1.0.1",
"redis": "^3.1.1",
Code Changes in node_modules
redis.interface.d.ts
Before delete node modules (file
node_modules/@nestjs-modules/ioredis/dist/redis.interface.d.ts
)After install node modules (file
node_modules/@nestjs-modules/ioredis/dist/redis.interface.d.ts
)Additional Information
I prefer not to update the version of @nestjs-modules/ioredis but seek guidance on resolving the issue without a version change.
Reproducibility
Severity
Attachments
Before and after interface file with same version
Due to changes in interface i am getting in import of redis in my service
Error i am getting
Additional Notes
I think i am getting these issues after updates in
@nestjs-modules/ioredis
Labels
bug
typescript
nestjs
ioredis
redis
Assignees