angular / angular/angularfire

Unable to deploy on windows using ng deploy

未关闭
#3,250 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
7.8k
派生
2.2k
平均合并
22 小时 28 分钟
30 天内合并 PR
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 摘要。