title: Google Cloud Functions: require(...) is not a function
body: <p>I am trying to deploy a Google Cloud function, I started by just adding the initial requirements to my index.js file:</p>
  
  <pre><code>// Import the Google Cloud client libraries
  const nl = require('@google-cloud/language')();
  const speech = require('@google-cloud/speech')();
  const storage = require('@google-cloud/storage')();
  </code></pre>
  
  <p>But I get the following message when deploying:</p>
  
  <pre><code>Detailed stack trace: TypeError: require(...) is not a function
  </code></pre>
  
  <p>This only happens with the @google-cloud/speech and @google-cloud/language modules, the @google-cloud/storage module is loaded fine as a function (I tested by commenting the first two).</p>
  
  <p>Any advise will be greatly appreciated.</p>
  
  <p>Borrigan</p>