Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

applyDecorators is not a function #48

Open
jchapelle opened this issue Feb 14, 2020 · 2 comments
Open

applyDecorators is not a function #48

jchapelle opened this issue Feb 14, 2020 · 2 comments

Comments

@jchapelle
Copy link

I'm using the lib as explained in the doc but I'm receiving this error message.
Any idea ?

D:\projects\project\node_modules@nestjs\schedule\dist\decorators\cron.decorator.js:8
return common_1.applyDecorators(common_1.SetMetadata(schedule_constants_1.SCHEDULE_CRON_OPTIONS, Object.assign(Object.assign({}, options), { cronTime })), common_1.SetMetadata(schedule_constants_1.SCHEDULER
_NAME, name), common_1.SetMetadata(schedule_constants_1.SCHEDULER_TYPE, scheduler_type_enum_1.SchedulerType.CRON));
^

TypeError: common_1.applyDecorators is not a function

@Tsemenzato
Copy link

Same issue, did you have any luck?

@miaowing
Copy link
Owner

miaowing commented Mar 5, 2020

Please update @nestjs/common package.

You are using @nestjs/schedule not nest-schedule https://github.com/nestjs/schedule

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants