Unable to deploy on windows using ng deploy
- 主要言語
- 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 **

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