I create a basic node project with a html file. I created this basic js including node-cron:
const cron = require('node-cron')
cron.schedule('* * * * * *', () =>{
console.log('Hello world')
})
I basically need to log 'Hello world' every second.
Uncaught ReferenceError: require is not defined at index.js:1:14
I see that i need to implement requireJs to my project, i did search in https://requirejs.org/docs/node.html website but i couldn't figure out how to do it. I need help.