angular / angular/angularfire

Unable to deploy on windows using ng deploy

Offen
#3,250 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
7.8k
Forks
2.2k
Ø Merge
22 Std. 28 Min.
Gemergte PRs (30 T.)
6

Beschreibung

### 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 **
![angular-err](https://user-images.githubusercontent.com/10049774/179815463-d4197dec-1e16-4be6-9d80-97c39917cb51.jpg)

### 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:../../.."`

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Reproduziere ng deploy unter Windows 11 mit einer Firebase-functions-App mit aktiviertem SSR unter Verwendung der im Issue aufgeführten Versionen. Untersuche die package.json des generierten Funktionsverzeichnisses und vergleiche sie mit der Bereitstellung unter macOS. Als erledigt gilt die Aufgabe, wenn die ungültige file:../../..-Abhängigkeit nicht generiert wird und die Bereitstellung ohne manuelle Bearbeitung der package.json erfolgreich ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
angular, firebase, typescript
Bereich
cloud, devops
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.