title: Module Import error - cannot find module
body: <p>I was trying to import the module dynamically in ES6 on Meteor application. But getting an error <strong>cannot find module</strong>. The same import works when I'm using the static import statement. </p>
  
  <p>Please have a look at the below code -</p>
  
  <pre><code>const JOBS = ['update-report-cron'];
  
  const jobs = {
    start() {
      JOBS.forEach((job) =&gt; {
        console.log(`job ${job} has been started`);
        let fileName = './' + job + '.js';
        console.log(require(fileName));
      })    
    } 
  };
  
  module.exports = {jobs};
  </code></pre>
  
  <p><strong>ERROR - Cannot find module './update-report-cron.js'</strong></p>