v8: CacheModule is not working: Cannot read property 'httpAdapter' of undefined
See original GitHub issueBug Report
Current behavior
Importing CacheModule.register()
and then using @UseInterceptors(CacheInterceptor)
throws an error:
Cannot read property ‘httpAdapter’ of undefined
When downgrading to 7.x it works as expected.
Repo: https://github.com/MickL/nestjs-8-cache-bug
Reproduce:
- yarn start
- curl localhost:3000
Environment
Nest version: 8.0.0-alpha.4
For Tooling issues:
- Node version: v14.17.0
- Platform: macOS Big Sur
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Cannot read properties of undefined on Nest.js Model ...
I have recently started getting type errors on Nest.js (I think after upgrading to v8) and can't figure them out. This is on...
Read more >Caching | NestJS - A progressive Node.js framework
If the item does not exist in the cache, null will be returned. ... Thus, CacheModule (which uses interceptors to cache responses) will...
Read more >NestJS Caching Globally neatly. - DEV Community
First things first, if you don't know about the NestJS Caching module, It's quite easy to understand, It will let you cache whatever...
Read more >cannot read properties of undefined (reading 'type') nestjs
I want to create and use schema in nestjs with fastify and mongoose. Tried resolving with relative path but not solving the issue....
Read more >Viewing online file analysis results for 'my_setup.exe'
Not all malicious and suspicious indicators are displayed. Get your own cloud service or the full version to view all details.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed in 8.0.0-alpha.5. Thanks for reporting!
Hi everyone.
After upgrade to v8 i always get this error even if i uninstall the nestjs/cqrs package