Reflector can't be resolved in SchedulerMetadataAccessor
egorderg opened this issue · 2 comments
I'm submitting a...
[ ] Regression
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
When i'm importing the ScheduleModule in my AppModule i get the following error:
Error: Nest can't resolve dependencies of the SchedulerMetadataAccessor (?). Please make sure that the argument Reflector at index [0] is available in the ScheduleModule context.
Expected behavior
The module should work in such a simple case.
Minimal reproduction of the problem with instructions
I just installed and imported the package. Also updated every package in my project. The current environment is:
"@nestjs/bull": "^0.4.1",
"@nestjs/common": "^8.0.9",
"@nestjs/core": "^8.0.9",
"@nestjs/jwt": "^8.0.0",
"@nestjs/passport": "^8.0.1",
"@nestjs/platform-express": "^8.0.9",
"@nestjs/schedule": "^1.0.1",
"@nestjs/swagger": "^5.1.0",
"@nestjs/typeorm": "^8.0.2",
What is the motivation / use case for changing the behavior?
Environment
Nest version: 8.0.9
For Tooling issues:
- Node version: XX 15.8.0
- Platform: Mac
Others:
Solved the problem for me. I've deleted my node_modules and dist folder (NX toolchain). After that everything worked fine.
I can confirm, had the exact same error with NestJS 8.2, and excluding a previous build dist
fixed it.