This also happens for me when I'm following https://learn.microsoft.com/en-us/azure/azure-functions/functions-create-scheduled-function
The same error happens with a .NET and NodeJS function.
Possibly related, although I couldn't see any way to follow the suggestions in that post?
I also found this post on Stack Overflow, but I couldn't fix things following the advice there.