Error when using netlify functions:invoke

I am getting error using invoke command of netlify dev, reference from cli/netlify-dev.md at main · netlify/cli · GitHub

When I try to list the functions via netlify functions:list, I can see their dir and url. And I can test function payload just fine through the local server with netlify dev. But the invoke command does not work for some reason.

netlify functions:invoke --name hello-world
TypeError: Cannot read property ‘dir’ of undefined

netlify.toml
[build]
functions = “./functions”
publish = “dist”
[dev]
framework = “#auto

Hi @coronatimemap.com, I’ve not used that function myself but it looks like you need to have netlify dev running at the same time. Could you try running the local server in another terminal and see if that helps?

I also updated your topic title to reflect the issue you are having.