Azure / Azure/static-web-apps-cli
Version incompatibility for Azure Functions Core Tools blocks execution of `swa start`
- Vorherrschende Sprache
- TypeScript
- Sterne
- 668
- Forks
- 156
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
**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`
**Describe the bug**
Working in ubuntu on the latest version of node and the swa cli, adding managed apis causes the cli to no longer work in terms of starting the app because of a version incompatability being registered between node and the azure functions core tools.
> ✖ Found Azure Functions Core Tools v4 which is incompatible with your current Node.js v24.5.0.
> ✖ See https://aka.ms/functions-node-versions for more information.
**To Reproduce**
Steps to reproduce the behavior:
1. Install node
```
> node --version
v24.5.0
```
2. Install swa
```
> swa --version
2.0.6
```
3. In an swa project, create a dotnet8 isolated function runtime (could work with others but this is what I used)
4. Make sure to add your ap directory to your swa cli config
5. Run `swa start` triggering core tools grab and then error due to version incompatability```
>swa start
✖ Found Azure Functions Core Tools v4 which is incompatible with your current Node.js v24.5.0.
✖ See https://aka.ms/functions-node-versions for more information.
```
**Expected behavior**
`swa start` should work OR I should be able to disable parts of the project from being booted up to get around these sorts of errors.
**Desktop (please complete the following information):**
- Ubuntu 24.04
Beitragsleitfaden
Rechercherichtung
Beginne damit, das Problem mit `swa start` in einem SWA-Projekt mit einer verwalteten API, Node.js v24.5.0, SWA CLI 2.0.6 und einer isolierten .NET-8-Funktionslaufzeit zu reproduzieren. Verfolge die Konfiguration der verwalteten API und den Startpfad von Azure Functions Core Tools. Als erledigt gilt die Aufgabe, wenn die CLI dieses Setup starten kann oder eine dokumentierte Möglichkeit bietet, die fehlschlagende Projektkomponente zu deaktivieren.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- azure, node.js, typescript
- Bereich
- cli
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100