I am getting this error and stuck on this
(using v4 and nodejs v20.14.0 and "@azure/functions": "^4.5.0", "durable-functions": "^3.1.0")
I have tried
1) https://learn.microsoft.com/en-us/azure/azure-functions/functions-node-troubleshoot?pivots=nodejs-model-v4
2) updating host.json
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[4.*, 5.0.0)"
}
3. updating local.settings.json "FUNCTIONS_WORKER_RUNTIME": "node",
4. updating /azure-functions-core-tool to latest
Still I am stuck on this issue my functions dont load
I was missing this Add a main property to the package.json with a glob that matches the functions in your project; in my case dist/src/functions/*/index.js -
Great article
https://johnnyreilly.com/migrating-azure-functions-node-js-v4-typescript