Azure / Azure/static-web-apps-cli

No errors at deployment when using runtime v4 with managed functions

Aperta
#822 0 commenti 0 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

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**
When using runtime v4 with a JS/TS managed functions API, no error is shown during deployment with SWA CLI (shows success message) but no functions are actually deployed.

**Note:** Now, I know that v4 runtime is currently not supported, but I didn't at the time and was caught trying to understand why my functions were missing for hours.

**To Reproduce**
1. Create a SWA project with a function API using JS v4 runtime
2. Run SWA deploy

**Expected behavior**
A warning or error message should be displayed to the user to indicate that runtime v4 is not currently supported.

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

- OS: MacOS
- Version 14.4

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia eseguendo la riproduzione documentata di `swa deploy` con un’API di managed-functions JavaScript o TypeScript che usa runtime v4, quindi esamina l’output dettagliato richiesto nell’issue. Traccia il modo in cui il deployment gestisce il runtime non supportato; il lavoro è completato quando il deployment segnala chiaramente un avviso o un errore invece di indicare il successo quando non viene deployata alcuna funzione.

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

Valutazione

Stack tecnologico
azure, typescript
Ambito
cli, cloud
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
48/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.