How to fix Internal error: Expected value to be neither null nor undefined: functionName when creating an Azure Functions Project?

Harsh Khewal 150 Reputation points
2024-04-27T07:06:12.38+00:00

Internal error: Expected value to be neither null nor undefined: functionName when creating an Azure Functions Project.

I am following the steps mentioned here: https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/ai-services/document-intelligence/tutorial-azure-function.md

Everything seems to be going exactly as mentioned in the aforementioned link yet still I am getting this error. Please Help.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,937 questions
Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
2,127 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Isaac Eduardo Amezcua Bustos 0 Reputation points
    2024-05-07T09:26:01.7633333+00:00

    I am working on MacOS Sonoma + VSCode and I was facing the same issue.

    What I have noticed is that I had an older azure-functions-core-tools version installed via Homebrew. I removed any version previously installed and issued this command to install the latest version:

    brew install azure-functions-core-tools@4

    After this, I installed the Azure Functions extension in VSCode and, in my case, this tutorial worked like a charm: https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-python .

    I hope this helps.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.