Closed garg-mahendra closed 1 year ago
Please share more details,
React version
Node JS version
OS
and cron gen version as well
...
Please share more details, React version Node JS version OS and cron gen version as well ...
"react": "^18.1.0", node: v16.15.1 OS: WSL2 Ubuntu Description: Ubuntu 20.04.4 LTS react-cron-generator": "2.0.3"
@garg-mahendra
Fixed the issue, updated rollup config and versions
Please use latest cron generator version. 2.0.8 if already installed please uninstall and install package again.
Thanks for reporting the issue.
Feel free to reopen if you same issue again
Thanks for the quick resolution of the mentioned bug.
@sojinantony01 @SojinAntony one thing I want to understand why the values of generated by the react-cron-generator
showing invalid cron expression when I'm validating these expression in backend,
for instance
Python Code, even I tried some online tools those also says these are invalid cron. like https://crontab.guru/
from cron_validator import CronScheduler, CronValidator
cron_string="0 10 11 1/1 * ? *"
CronScheduler(cron_string)
// *** ValueError: Invalid expression // error
Is it happening for all cron expressions creating from react cron generator? or only this one?
if yestry deleting last value from cron expressions (year value) convert it to a 6 value cron expression and use it
Thanks for quick response, Yes, In all expression facing same issue.
Do you mean from
cron_string="0 10 11 1/1 ? " At 11:10:00 am, every day starting on the 1st, every month
to
cron_string="0 10 11 1/1 * ? " still not valid
but this will change the value of cron,
Ok let me try same here
Ok let me try same here
okay, I've not find solution yet.
In the latest version I'm getting this error.