Firebase and AngularDart. Error: There was an issue preparing Hosting files for upload
Firebase and AngularDart. Error: There was an issue preparing Hosting files for upload
我正在尝试在 Firebase 中托管我的网络应用程序。我 运行ned:
webdev build --output build
,
firebase init
,以及
firebase deploy
,
但我收到一条错误消息:
Error: There was an issue preparing Hosting files for upload.
所以我 运行ned firebase deploy --debug
。错误消息是:
i hosting: preparing build/web directory for upload...
[2018-08-11T14:30:25.054Z] Error: ELOOP: too many symbolic links encountered, stat 'C:\Users\marco\MyWebApp\WEB\WEBSITE
- Copia\build\web\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages'
Error: There was an issue preparing Hosting files for upload.
我该如何解决这个错误?
(如果我 运行 firebase serve
,它有效)。
非常感谢!
如 中所述,确保在 firebase.json
文件中将 hosting.public
字段设置为 "build/web"
:
{
"hosting": { "public": "build/web" }
}
目前似乎有一个 issue with webdev builds(除非是 firebase 问题)。无论如何,作为一种解决方法,我发现删除导致循环的符号链接 (build/packages/packages
) 解决了我的问题。
从项目的根目录 运行 这个命令每次 你重新运行 webdev build -o build
:
rm build/packages/packages
之后 firebase serve
和 firebase deploy
都为我工作。
我正在尝试在 Firebase 中托管我的网络应用程序。我 运行ned:
webdev build --output build
,firebase init
,以及firebase deploy
,
但我收到一条错误消息:
Error: There was an issue preparing Hosting files for upload.
所以我 运行ned firebase deploy --debug
。错误消息是:
i hosting: preparing build/web directory for upload...
[2018-08-11T14:30:25.054Z] Error: ELOOP: too many symbolic links encountered, stat 'C:\Users\marco\MyWebApp\WEB\WEBSITE
- Copia\build\web\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages\packages'
Error: There was an issue preparing Hosting files for upload.
我该如何解决这个错误?
(如果我 运行 firebase serve
,它有效)。
非常感谢!
如 firebase.json
文件中将 hosting.public
字段设置为 "build/web"
:
{
"hosting": { "public": "build/web" }
}
目前似乎有一个 issue with webdev builds(除非是 firebase 问题)。无论如何,作为一种解决方法,我发现删除导致循环的符号链接 (build/packages/packages
) 解决了我的问题。
从项目的根目录 运行 这个命令每次 你重新运行 webdev build -o build
:
rm build/packages/packages
之后 firebase serve
和 firebase deploy
都为我工作。