title: Firebase : Failed to configure trigger providers/cloud.storage/eventTypes/object.change
body: <p>Can anyone tell me how to fix the following storage trigger error:</p>
  
  <pre><code>Failed to configure trigger providers/cloud.storage/eventTypes/object.change
  </code></pre>
  
  <p>Strange thing is some of the triggers deploy successfully. 
  All of the triggers deployed successfully just a week ago and we haven't changed our environment or SDK.
  We are using firebase-tools 3.14.0</p>
  
  <p>The code for one of the failed triggers looks like this:</p>
  
  <pre><code>  opBudget_process_div : functions.storage.object()
    .onChange(event =&gt; {
      if(event.data.resourceState === 'not_exists') {
        console.log("Deletion event.");
        return;
      }
      var path_arr = event.data.name.split("/");
      if(path_arr.indexOf('ack-store-visit') == -1 || path_arr.indexOf('meta') == -1
          || path_arr.indexOf('kpi_op_budget') == -1){
        /**
        * NOTE: Currently all files uploaded to the bucket will trigger this function.
        * We perform this check to stop undesired files from being processed.
        * TODO: Maybe also check the file extension
        */
        return;
      }
      return require("./kpi_op_budget/process")
        .sync_op_budget_div(event.data, "operational_budget");
  }),
  </code></pre>
  
  <p>The text version of the error we get in the terminal is: </p>
  
  <blockquote>
  <pre><code>✔  functions[forms_ack_store_visit-meta-people_process]: Successful update operation. 
  </code></pre>
    
    <p>⚠  functions[forms_ack_store_visit-meta-opBudget_process]: Deployment error.
    Failed to configure trigger providers/cloud.storage/eventTypes/object.change
    ✔  functions[forms_ack_store_visit-meta-storeAnalysis_import]: Successful update operation. 
    ✔  functions[forms_ack_store_visit-meta-cellOps_process]: Successful update operation. 
    ✔  functions[forms_ack_store_visit-meta-sales_process]: Successful update operation. 
    ✔  functions[forms_ack_store_visit-meta-stockLoss_process]: Successful update operation. 
    ✔  functions[forms_ack_store_visit-meta-people_process_div]: Successful update operation. 
    ✔  functions[forms_ack_store_visit-meta-stockLoss_import]: Successful update operation. 
    ✔  functions[forms_ack_store_visit-meta-storeAnalysis_process]: Successful update operation. 
    ✔  functions[forms_ack_store_visit-meta-officers_import]: Successful update operation. 
    ✔  functions[forms_ack_store_visit-meta-sales_import]: Successful update operation. 
    ✔  functions[forms_ack_store_visit-meta-ramDb_import]: Successful update operation. 
    ✔  functions[forms_ack_store_visit-meta-people_import]: Successful update operation. 
    ✔  functions[forms_ack_store_visit-meta-opBudget_process_div]: Successful update operation. 
    ✔  functions[forms_ack_store_visit-meta-internalAudit_import]: Successful update operation. 
    ✔  functions[forms_ack_store_visit-meta-stockLoss_process_div]: Successful update operation. 
    ✔  functions[forms_ack_store_visit-meta-ramDb_process_div]: Successful update operation. </p>
  </blockquote>
  
  <p>Functions deploy had errors. To continue deploying other features (such as database), run:
      firebase deploy --except functions</p>
  
  <p>Error: Functions did not deploy properly.</p>
  
  <p><a href="https://i.stack.imgur.com/J9p4L.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J9p4L.png" alt="enter image description here"></a></p>