Azure / Azure/static-web-apps-cli

Version incompatibility for Azure Functions Core Tools blocks execution of `swa start`

Aperta
#970 7 commenti 4 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
668
Fork
156
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia riproducendo il problema con `swa start` in un progetto SWA che utilizza un'API gestita, Node.js v24.5.0, SWA CLI 2.0.6 e un runtime di funzioni .NET 8 isolato. Traccia la configurazione dell'API gestita e il percorso di avvio di Azure Functions Core Tools. Il lavoro è completato quando la CLI è in grado di avviare questa configurazione oppure fornisce un modo documentato per disabilitare il componente del progetto che causa il problema.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
azure, node.js, typescript
Ambito
cli
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
48/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.