Firebase部署一直在给我一个错误:remoteconfig.template.json中的Parse错误



我正试图用firebase部署一个web应用程序,但每次运行deploy时,我都会收到这个错误

Error: Parse Error in remoteconfig.template.json:
No data, empty input at 1:1
^
File: "remoteconfig.template.json"

您在firebase.json文件中有一个对remoteconfig.template.json的引用,但该模板不存在。这通常看起来像:

"remoteconfig": {
"template": "remoteconfig.template.json"
}

解决方案是在firebase.json文件中找到该部分,并将其删除

您收到此错误是因为在firebaseinit中包含了远程配置(或同意(。要使其与deploy一起工作,您必须在文件remoteconfig.template.json中至少添加一个参数,如下所示;

{
"example_minimum_score_for_level_2": 500
}

@BenjaminRAIBAUD评论道,如果remoteconfig.template.json为空,请尝试将{ }添加到文件中。这对我很有效。

最新更新