Closed diberry closed 1 year ago
How did you create this project? What kind of trigger did you start with? When you create a new TS project with an httpTrigger, it looks like this:
I started with VSCode's Azure functions extension to create function app but selected the Node.js v4 model. The trigger was an HTTP trigger but I renamed it in the step to status
.
Thanks for providing the code - I do know what the code looks like - just wondered if the Azure Functions vscode extension was supposed to work with the new programming model.
I can't repro this now.
Just repro'd: more details.
.git
. API
nesting){
"name": "Azure"
}
api
.Ah, I see. This is a good find!
The "+" button that you're clicking is actually part of the Static Web Apps extension (that leverages Functions to create a HTTP Trigger). SWA must not be equipped to deal with the new programming model which is probably why it's creating this weird function. That's also why it's automatically creating it in the "api" folder.
If you want to create a new Functions project using the Functions extension, you need to click the button instead. But this is definitely something that we need to fix (though I'm going to transfer it to SWA since it's technically an issue there)
In a new/empty directory, I created a v4 ts app. The boilerplate looks correct except for the function file itself.