Azure / Azure/static-web-apps-cli

`swa start` can't find Azure Functions Core Tools

Aperta
#909 11 commenti 0 reazioni 1 assegnatario Rivendicata da @Timothyw0 Vedi su GitHub
Lingua principale
TypeScript
Stelle
668
Fork
156
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Before filing this issue, please ensure you're using the latest CLI by running `swa --version` and comparing to the latest version on [npm](https://www.npmjs.com/package/@azure/static-web-apps-cli).

**Are you accessing the CLI from the default port `:4280` ?**

- [ ] No, I am using a different port number (`--port`) and accessing the CLI from that port
- [x] Yes, I am accessing the CLI from port `:4280`

> Make sure you are accessing the URL printed in the console when running `swa start`!

**ℹ️ NOTE: Make sure to enable debug logs when running any `swa` commands using `--verbose=silly`**

**Describe the bug**
A clear and concise description of what the bug is.

- I have Blazor WASM app as a front-end, and Azure Functions as a managed backend.
- When I run `swa start` locally, it keeps throwing that Azure Functions Core Tools is not installed or not found
- However, it's indeed installed the latest version of Azure Functions Core Tools.

**To Reproduce**
Steps to reproduce the behavior:

1. Clone [https://github.com/devkimchi/azure-easyauth-sample](https://github.com/devkimchi/azure-easyauth-sample)
1. Type in command `swa start`
1. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

- It should run without an error.

**Screenshots**
If applicable, add screenshots to help explain your problem.

![Image](https://github.com/user-attachments/assets/ddbcc8e8-17e3-4d80-9e74-53ce6ca87898)

**Desktop (please complete the following information):**

- OS: `Windows 11 Enterprise`
- Version: `24H2`

**Additional context**
Add any other context about the problem here.

- swa version: `2.0.2`
- func version: `4.0.6610`
- If I run the function app first with the command, `func start`, and attach it to the `swa start` command like `swa start --api-devserver-uri http://localhost:7071` it's fine.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.