I have a nestjs project which runs scheduled tasks, but when I try to run it on Ubuntu 22.04, it throws an error when starting the application. This is the error
Error: Unknown alias: fal
. Stacktrace below
Error: Unknown alias: fal at /home/ashan/Source/holistic-theory/node_modules/cron/lib/time.js:403:11 at String.replace () at CT._parse (/home/ashan/Source/holistic-theory/node_modules/cron/lib/time.js:398:20) at new CT (/home/ashan/Source/holistic-theory/node_modules/cron/lib/time.js:96:9) at new CJ (/home/ashan/Source/holistic-theory/node_modules/cron/lib/job.js:62:19) at /home/ashan/Source/holistic-theory/node_modules/@nestjs/schedule/dist/scheduler.orchestrator.js:56:29 at Array.forEach () at SchedulerOrchestrator.mountCron (/home/ashan/Source/holistic-theory/node_modules/@nestjs/schedule/dist/scheduler.orchestrator.js:54:18) at SchedulerOrchestrator.onApplicationBootstrap (/home/ashan/Source/holistic-theory/node_modules/@nestjs/schedule/dist/scheduler.orchestrator.js:27:14)
The error was because instead of a cron expressions like * 10 * * *, the value false was being passed as an input