Comments (5)
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:
from vscode-azurestaticwebapps.
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.
from vscode-azurestaticwebapps.
I can't repro this now.
from vscode-azurestaticwebapps.
Just repro'd: more details.
- On windows - internal FTE laptop windows version.
- In new/empty folder - nothing else in it - not even
.git
. - Created new app from Azure explorer workspace icon - didn't ask me for directory - all questions asked and answered - no problems. (I tried a second time using the Command Pallete and was allowed to select the base directory - the final file created looks correct and there is no
API
nesting)
- After process, file is named correctly but only has
{
"name": "Azure"
}
- Another weird thing is that the directory structure is an additional layer of
api
.
from vscode-azurestaticwebapps.
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)
from vscode-azurestaticwebapps.
Related Issues (20)
- The "Focused Resources" view doesn't auto-refresh after creating a new static web app HOT 1
- An incorrect webpage is opened after debugging the "nextjs-basic-api" project HOT 2
- There is no "GitHub Configuration" node under the "Production" node after creating a static web app HOT 1
- server js HOT 1
- php HOT 2
- Suggestion, remove Build step for HTML preset in VS Code/Portal
- Deploy from monorepo fails HOT 3
- [Suggestion] It would be better to remove the "Open in Portal" action from the context menu of the "Functions" node
- An error occurs when creating a static web app on Mac HOT 1
- Extension should detect and use locally installed SWA CLI
- Curriculum HOT 2
- i cannot deploy static app from VS HOT 2
- Git Pull on successful resource creation? HOT 1
- Zanega Browser HOT 3
- Failed to setup project: write EPROTO 84630000:error HOT 2
- Zanega Browser HOT 4
- [Bug] Azure Static Web Apps Extension, bad credentials error message HOT 2
- Issue with Creating Static Web App - Error: "[Provider "/subscriptions/<mySubscriptionID>/providers/Microsoft.Resources" does not have resource type "resourceGroups"]" HOT 3
- hhhhhh HOT 2
- Failed to very "AzureWebJobsStorage" error when debugging HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-azurestaticwebapps.