title: "Type Error: lambda is not a function" in handler with multiple functions
body: <p>I have two functions in my handler.js file and I have configured them correctly in serverless.yml. The problem is, when I run invocation, only the first one work and the second one throws a type error: "lambda is not a function". </p>
  
  <p>I made sure there are no spelling mistakes in my yml file or in the handler file. Also, I tried putting the functions into separate files. None of them work.</p>
  
  <p>In my handler.js I have</p>
  
  <pre><code>const one = async (event, context, callback) =&gt; {
  //code here
  };
  
  const two = async (event, context, callback) =&gt; {
  //code here
  };
  
  module.exports = {
  one,
  two
  };
  </code></pre>
  
  <p>In my yml file I have</p>
  
  <pre><code>functions:
    one:
      handler: handler.one
      events:
        - http: POST one
    two:
      handler: handler.two,
      events:
        - http: POST two
  
  </code></pre>
  
  <p>Calling <code>one</code> works fine but calling <code>two</code> throws an error.</p>