我做了什么, 我在html / css / js着陆页项目中运行了firebase init。 仅用于托管的设置,但是当我运行firebase deploy --only hosting:sitename时,出现意外错误。不知道从哪里开始寻找。
我所有的工具都是最新的,firebase工具,节点等...
这是 Firebase JSON 文件
{
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}
这是调试日志
[debug]
[debug] [2019-02-27T06:34:00.434Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2019-02-27T06:34:00.435Z] > authorizing via signed-in user
[debug] [2019-02-27T06:34:00.435Z] [iam] checking project fakturo-89fe7 for permissions ["firebase.projects.get","firebasehosting.sites.update"]
[debug] [2019-02-27T06:34:00.439Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/fakturo-89fe7:testIamPermissions
[debug] [2019-02-27T06:34:01.631Z] <<< HTTP RESPONSE 200
[debug] [2019-02-27T06:34:01.636Z] >>> HTTP REQUEST GET https://firebase.googleapis.com/v1beta1/projects/fakturo-89fe7
[debug] [2019-02-27T06:34:02.042Z] <<< HTTP RESPONSE 200
[info]
[info] === Deploying to 'fakturo-89fe7'...
[info]
[info] i deploying hosting
[info]
[info] ✔ Deploy complete!
[info]
[info] Project Console: https://console.firebase.google.com/project/fakturo-89fe7/overview
[debug] [2019-02-27T06:34:02.057Z] TypeError: Cannot read property 'deploys' of undefined
at /usr/local/lib/node_modules/firebase-tools/lib/deploy/index.js:88:36
at process._tickCallback (internal/process/next_tick.js:68:7)
[error]
[error] Error: An unexpected error has occurred.
答案 0 :(得分:0)
我的托管服务针对多个站点进行了配置,我遇到了同样的问题,可以通过添加来解决
<p-cellEditor *ngIf="gridDefinition.Editable === true">
<ng-template pTemplate="input">
<input pInputText type="text" [value]="appointment[gridDefinition.PropertyBinding]">
</ng-template>
<ng-template pTemplate="output">
{{appointment[gridDefinition.PropertyBinding]}}
</ng-template>
</p-cellEditor>
在
"site": "firebase-hosting-site",