npm, and to test, have run the example
import cron from "node-cron"
cron.schedule('* * * * *', () => {
console.log('running a task every minute');
});
It gives me this error.
node_cron_1["default"].schedule("1 * * * *", function () {
^
TypeError: Cannot read property 'schedule' of undefined.
The package node-schedule gives the same error when attempting the same task. Nothing I've found from searching applies, any thoughts or insight?
Please format the code you posted, by wrapping it in triple backticks. -> `
Обсуждают сегодня