Error while using async methods
santoshyadavdev opened this issue · 2 comments
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- Refer https://github.com/santoshyadav198613/nest-in-memory-demo
- run npm run build
- you will get error "src/employee/employee.controller.ts:10:5 - error TS2742: The inferred type of 'GetEmployee' cannot be named without a reference to '@nestjs-addons/in-memory-db/node_modules/rxjs'. This is likely not portable. A type annotation is necessary."
Expected behavior
A clear and concise description of what you expected to happen.
When we try to use async methods we get below errors
The inferred type of 'GetEmployee' cannot be named without a reference to '@nestjs-addons/in-memory-db/node_modules/rxjs'. This is likely not portable. A type annotation is necessary
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
What I tried yet: The dependencies are peerDependencies but e.g rxjs are comes withins in-memory-dbs node_modules. If I just delete the rxjs version in node_modules/... In-memory-db/node_modules it works without complaining about different rxjs libs
Closing as resolved with version 2