Unable to deploy on windows using ng deploy
- Lingua principale
- TypeScript
- Stelle
- 7.8k
- Fork
- 2.2k
- Merge medio
- 22h 28m
- PR unite (30g)
- 6
Descrizione
### Version info
**Angular:** 13.3.0
**Firebase:** 9.6.10
**AngularFire:** 7.2.1
**Node:** 16.13.2
**Operating System:** Windows 11
### How to reproduce these conditions
**Unable to deploy on windows using ng deploy**
Hi, when I am trying to deploy the my app which have SSR enabled for firebase functions using ng deploy it just doesn't work.
Deployment just fails with error message : `Your code contains errors while deploying function ssr_app`
After many hours of searching I found that it is creating wrong package.json file it has a dependency stating myprojectname with value file:../../.. which looks like this exactly `"my-project": "file:../../.."`
This error is only being produced on windows machine, same doesn't happen on mac. Also manually removing that line and running firebase deploy does the job.
### Debug output
** Errors in the JavaScript console **
** Output from `firebase.database().enableLogging(true);` **
** Screenshots **

### Expected behavior
It should generate package.json correctly and invalid dependency should not be added in it.
### Actual behavior
It is adding an invalid dependency in generated function directory's package.json file which looks like this `"my-project": "file:../../.."`
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Riproduci ng deploy su Windows 11 con un'applicazione Firebase functions con SSR abilitato, utilizzando le versioni elencate nell'issue. Ispeziona il package.json della directory delle funzioni generata e confrontalo con il deployment su macOS. Il lavoro è completato quando la dipendenza non valida file:../../.. non viene generata e il deployment riesce senza modificare manualmente package.json.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, firebase, typescript
- Ambito
- cloud, devops
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100