title: serviceBusTrigger is not registered error in Azure Functions for Javascript
body: <p>I'm trying to create a Function that is triggered when a message becomes available in an Azure Service Bus subscription. I followed the brief example from the <a href="https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-service-bus#trigger---javascript-example" rel="nofollow noreferrer">official docs</a>. </p>
  
  <p>Running the app locally via <code>func host start</code> leads to the following error: "ServiceBusTriggerJS: <strong>The binding type 'serviceBusTrigger' is not registered. Please ensure the type is correct and the binding extension is installed.</strong>"</p>
  
  <p>My setup:</p>
  
  <p><code>package.json</code> contains the azure node module: <code>"azure": "^2.2.1-preview"</code>. Node version is 8.11.</p>
  
  <p><code>function.json</code> is as in the example:</p>
  
  <pre><code>{
    "disabled": false,
    "bindings": [
      {
        "topicName": "myTopic",
        "subscriptionName": "mySubscription",
        "connection": "MyServiceBus",
        "name": "myQueueItem",
        "type": "serviceBusTrigger",
        "direction": "in"
      }
    ]
  }
  </code></pre>
  
  <p><code>local.settings.json</code> contains connection strings to the Service Bus and a storage account that is necessary for running locally:</p>
  
  <pre><code>{
    "IsEncrypted": false,
    "Values": {
      "AzureWebJobsStorage": "DefaultEndpointsProtocol=https;AccountName=...",
      "MyServiceBus": "Endpoint=sb://...servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=..."
    }
  }
  </code></pre>
  
  <p><code>index.js</code> is the same as the example, too:</p>
  
  <pre><code>module.exports = function (context, myQueueItem) {
      context.log('JavaScript queue trigger function processed work item', myQueueItem);
      context.done();
  };
  </code></pre>
  
  <hr>
  
  <p><strong>EDIT</strong>: This is similar to this question: <a href="https://stackoverflow.com/questions/48295848/the-binding-type-servicebustrigger-is-not-registered-error-in-azure-functions">The binding type 'serviceBusTrigger' is not registered error in azure functions c# with core tools 2</a>. The problem (and therefore solution) are the same. I find the answer here straight-forward to implement.</p>