title: Referenced Module cannot be found (Javascript)
body: <p>I have defined a function and put it into a separate file (util.js) in a util folder. I then export the function within the module.</p>
  
  <p>I then require the module in the main function and then invoke the function in the main function.</p>
  
  <p>However the lambda console always prompts that it is unable to find the module "util/util.js"</p>
  
  <p>I have tried everything I can think of and hope that you can help me getting things back on track.</p>
  
  <p>The util.js (placed in a folder named "util":</p>
  
  <pre><code>module.exports.generateText = generateText
  
  function generateText() {
  
      console.log("Function invoked")
  
  }
  </code></pre>
  
  <p>The main function requiring the util.js and invoking the function:</p>
  
  <pre><code>const referenced = require("util/util.js")
  
  exports.handler = (event, context, callback) =&gt; {
  
  // invoke the function in the util.js
     referenced.generateText()
  
  }
  </code></pre>
  
  <p><strong>I just would like to call the function in the util/util.js file from the main function.</strong></p>