title: Firebase doesn't deploy my function, says it isn't a cloud function
body: <p>This is my function, getAccountType</p>
  <pre><code>import { firebaseAdmin } from './index';
  
  export const getAccountType = async (data: any, context: any) =&gt; {
      const uid = context.auth.uid;
      try{
          const snapshot = await firebaseAdmin.firestore().collection('users').doc(uid).get();
          if(snapshot.exists){
              const data = snapshot.data() as { accountType : 'youth' | 'prof', firstName : string, isProfileComplete : boolean};
              return data;
          }
          else{
              return { message : &quot;User does not exist&quot;};
          };
      } catch(e){
          return { message : `Failed to get user data ${e}` };
      };
  };
  </code></pre>
  <p>And this is my index.ts file</p>
  <pre><code>import * as functions from &quot;firebase-functions&quot;;
  import * as admin from 'firebase-admin';
  import { helloWorld } from &quot;./helloWorld&quot;;
  import { getAccountType } from &quot;./getAccountType&quot;;
  
  
  export const firebaseAdmin = admin.initializeApp();
  exports.helloWorld = functions.https.onCall(helloWorld)
  exports.getAccountType = functions.https.onCall(getAccountType)
  </code></pre>
  <p>And here is the error I receive</p>
  <pre><code>i  functions: preparing functions directory for uploading...
  
  Error: Error occurred while parsing your function triggers. Please ensure that index.js only exports cloud functions.
  </code></pre>
  <p>The HelloWorld function deploys just fine, but for some reason firebase thinks getAccountType is not a cloud function</p>