title: Firebase Functions Deploy: Error occurred while parsing your function triggers
body: <p>I'm using Firebase Functions <code>JavaScript</code> version, and when I run <code>firebase deploy</code>, I'm getting this error:</p>
  
  <blockquote>
    <p>Error: Error occurred while parsing your function triggers.</p>
    
    <p>Error: Failed to parse app options file: Error: ENOENT: no such file or directory, open '[object Object]'
            at FirebaseAppError.FirebaseError</p>
  </blockquote>
  
  <p>This is my <code>index.js</code> code up until the line which causes this error:</p>
  
  <pre><code>var functions = require('firebase-functions');
  var firebase = require('firebase');
  var admin = require('firebase-admin');
  
  
  var serviceAccount = require("../functions/file.json");
  
  admin.initializeApp({
      credential: admin.credential.cert(serviceAccount),
      databaseURL: "https://app.firebaseio.com"
  });
  
  var config = {
      apiKey: "key",
      authDomain: "app.firebaseapp.com",
      databaseURL: "https://app.firebaseio.com",
      projectId: "appID",
      storageBucket: "app.appspot.com",
      messagingSenderId: "number"
  };
  
  firebase.initializeApp(config);
  admin.initializeApp(functions.config().firebase);
  </code></pre>
  
  <p>My Node version - <strong>8.11.1</strong></p>
  
  <p>NPM - <strong>5.6.0</strong></p>