#No job functions found. Try making your job classes and methods public... Durable functions

1 messages · Page 1 of 1 (latest)

verbal spade
#

I truly have no idea how to go about this.. I am trying to create a locale durable functions environment. Using NodeJS and Typescript. My I will have screenshots below. After doing npm run build to generate my .js files, then doing npm run start it fails with these errors:

> backoffice@1.0.0 prestart
> npm run build


> backoffice@1.0.0 build
> tsc


> backoffice@1.0.0 start
> func start


Azure Functions Core Tools
Core Tools Version:       4.0.5085 Commit hash: N/A  (64-bit)
Function Runtime Version: 4.16.4.20366

[2023-03-25T04:25:42.094Z] File 'C:\Program Files\dotnet\dotnet.exe' is not found, 'dotnet' invocation will rely on the PATH environment variable.
[2023-03-25T04:25:42.688Z] File 'C:\Program Files\dotnet\dotnet.exe' is not found, 'dotnet' invocation will rely on the PATH environment variable.
[2023-03-25T04:25:42.866Z] No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).```
#

Current structure of my files

#
{
  "bindings": [
    {
      "authLevel": "anonymous",
      "name": "req",
      "type": "httpTrigger",
      "direction": "in",
      "route": "orchestrators/DurableFunctionsOrchestratorJS1",
      "methods": [
        "post",
        "get"
      ]
    },
    {
      "name": "$return",
      "type": "http",
      "direction": "out"
    },
    {
      "name": "starter",
      "type": "orchestrationClient",
      "direction": "in"
    }
  ],
  "scriptFile": "../../dist/DurableFuncHttpTest/index.js"
}```
#

this is my durable function http function.json file pointing to my dist folder for scriptFile