miaowing / nest-schedule

A cron-like and not-cron-like job distributed scheduler for Nest.js by decorators.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

applyDecorators is not a function

jchapelle opened this issue · comments

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

Same issue, did you have any luck?

commented

Please update @nestjs/common package.

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