Every once in a while when I try to start my Azure function locally from VS code I get the error “Could not find the task func: host start”. The first time I got this error I probably spent at least half a day trying different solutions before I got it to work again. But the last two times I’ve used the same simple solution so I thought I might as well share it and maybe save someone else some time.
Uninstall the Azure Function VS code extension, and the re-install it.
Yes, thats it. Sceptical? I was too, but I was also desperate to get it to work so I decided to try and this has helped me multiple times now.
If you have experienced the same error but with a different solution let me know in the comments below so I can update the blogpost to include different solutions.
Did you find this article usefull? Follow me on twitter to be notified when I publish something new!
If you are interested in Microsoft 365 Development you might also like my other blogposts in this category.
Also, if you have any feedback or questions, please let me know in the comments below. 🙂
Thank you for reading, and happy coding!