angular / angular/angularfire

Function Dependencies Causing Build To Fail

未關閉
#3,025 12 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
comp: schematics needs: recheck type: bug version: legacy (v7-v16)
主要語言
TypeScript
星號
7.8k
分支
2.2k
平均合併
22 小時 28 分鐘
30 天內合併 PR
6

描述

### Version info

**Angular:** 12.2.29

**Firebase:** 9.1.2 / 9.1.3

**AngularFire:** 7.1.0 / 7.1.1

**Other (e.g. Ionic/Cordova, Node, browser, operating system):** Windows Terminal / PowerShell

### How to reproduce these conditions

**Failing test unit, Stackblitz demonstrating the problem**

**Steps to set up and reproduce**

In any terminal / powershell, run: ng deploy. The process will run until it attempts to upload the function. The function fails to deploy.

**Sample data and security rules**

**package.json created in dist/{PROJECT_NAME}/functions**
```
"dependencies": {
"firebase-admin": "^9.11.1",
"firebase-functions": "^3.6.0",
"{PROJECT_NAME}": "file:..\\..\\.."
},
```

### Debug output

** Errors in Windows Terminal **

> Error when trying to deploy:
> Functions did not deploy properly.

** Error output from Google Cloud Builder Log **
"Step #1 - "build": Failure: (ID: XXXXXX) npm ERR! @angular-devkit/architect not accessible from {PROJECT_NAME}"

### Expected behavior

To deploy successfully. Using 7.1.0-rc.4, the dist package.json does not try to access root dependencies and deploys successfully.

### Actual behavior

Project will not deploy with cloud functions

貢獻指南

開啟貢獻指南

研究方向

Start with the ng deploy entry point and the package.json generated in dist/{PROJECT_NAME}/functions. Reproduce the deployment with Angular 12.2.29, Firebase 9.1.2/9.1.3, and AngularFire 7.1.0/7.1.1, then compare the generated dependencies with the working 7.1.0-rc.4 behavior. Done means Cloud Functions deploy successfully without trying to access root dependencies.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
angular, firebase, typescript
領域
build-system, cloud
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。