Error when using netlify functions:invoke

I am getting error using invoke command of netlify dev, reference from

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

functions = “./functions”
publish = “dist”
framework = “#auto

Hi, 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.