javascripttypescriptazureazure-functionsazure-sql-database

How to resolve 'Value cannot be null' error when using Azure Functions Core Tools?


I am using Azure Functions Core Tools from a cloned repository. When I try to run npm run watch this error occurs:
Value cannot be null. (Parameter 'provider') Error in Terminal

I've installed Azure Functions Core Tools from this https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=v3%2Clinux%2Ccsharp%2Cportal%2Cbash%2Ckeda and was logged in on azure using azure-cli. I'm currently using Ubuntu 20.04.3 LTS.


Solution

  • There are situations in which it is best to install the Azure Function Core Tools explicitly to avoid any conflict or versioning problems:

    https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-register#explicitly-install-extensions

    Further discussion of this issue can be seen in:

    https://github.com/Azure/azure-functions-core-tools/issues/2232