角火 |部署 |无法读取未定义的 属性 'printf'

Angularfire | ng deploy | Cannot read property 'printf' of undefined

我在最近创建的 Angular 项目上尝试 运行 ng deploy 时遇到问题。我使用的版本是 9.1.6(我刚从 9.1.5 升级,我得到了同样的错误)。 ng serve 可能有效。

(base) paul@Pauls-MacBook-Pro must-have % ng deploy              
 Building "must-have"
Another process, with id 4426, is currently running ngcc.
Waiting up to 250s for it to finish.
Generating ES5 bundles for differential loading...
ES5 bundle generation complete.

chunk {0} runtime-es2015.1eba213af0b233498d9d.js (runtime) 1.45 kB [entry] [rendered]
chunk {0} runtime-es5.1eba213af0b233498d9d.js (runtime) 1.45 kB [entry] [rendered]
chunk {2} polyfills-es2015.690002c25ea8557bb4b0.js (polyfills) 36.1 kB [initial] [rendered]
chunk {3} polyfills-es5.9e286f6d9247438cbb02.js (polyfills-es5) 129 kB [initial] [rendered]
chunk {1} main-es2015.658a3e52de1922463b54.js (main) 467 kB [initial] [rendered]
chunk {1} main-es5.658a3e52de1922463b54.js (main) 545 kB [initial] [rendered]
chunk {4} styles.c86817c326e37bf011e3.css (styles) 62 kB [initial] [rendered]
Date: 2020-05-16T16:06:16.041Z - Hash: a4ca944a427d0323601e - Time: 68781ms


Cannot read property 'printf' of undefined
(base) paul@Pauls-MacBook-Pro must-have % 

我的版本:

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.7
@angular-devkit/build-angular     0.901.6
@angular-devkit/build-optimizer   0.901.6
@angular-devkit/build-webpack     0.901.6
@angular-devkit/core              9.1.6
@angular-devkit/schematics        9.1.6
@angular/cdk                      9.2.3
@angular/cli                      9.1.6
@angular/fire                     6.0.0
@angular/material                 9.2.3
@ngtools/webpack                  9.1.6
@schematics/angular               9.1.6
@schematics/update                0.901.6
rxjs                              6.5.5
typescript                        3.8.3
webpack                           4.42.0

@angular/fire 的 6.0.0-rc.2 版中提供了修复程序。

升级到 6.0.0-rc.2
ng add @angular/fire@next

我遇到了这个问题,每次 ng add @angular/fire@next 都没有帮助。

我正在使用 angular8,angular fire 和 firebase 托管。因此,我使用 ng build 构建项目,然后使用 firebase deploy.

部署在 firebase 托管上