angular / angular/angularfire

Unable to deploy on windows using ng deploy

オープン
#3,250 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
7.8k
フォーク
2.2k
平均マージ
22時間 28分
マージ済み PR(30日)
6

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

issue に記載されているバージョンを使用して、SSR を有効にした Firebase functions アプリで Windows 11 上の ng deploy を再現します。生成された関数ディレクトリの package.json を調査し、macOS でのデプロイと比較します。無効な file:../../.. 依存関係が生成されず、package.json を手動で編集しなくてもデプロイに成功すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, firebase, typescript
領域
cloud, devops
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。