title: Error parsing triggers: Cannot find module
body: <p>I am trying to deploy my firebase function to cloud but getting an error:</p>
  
  <blockquote>
    <p>Error: Error parsing triggers: Cannot find module 'EmailData'</p>
  </blockquote>
  
  <p>1.I  compile my ts file to js.</p>
  
  <p>2.the build of ts ok...
  my code looks like:</p>
  
  <p>the ts that importing the file...</p>
  
  <pre><code>var EmailDataClass = require("EmailData");
  </code></pre>
  
  <p>and the file it self:</p>
  
  <pre><code>class EmailData {....
  }export = EmailData;
  </code></pre>
  
  <blockquote>
  <pre><code>✔  functions: all necessary APIs are enabled
  i  functions: preparing functions directory for uploading...
  
  Error: Error parsing triggers: Cannot find module 'EmailData'
  </code></pre>
  </blockquote>