[英]Flutter Web and multiple deployment error
我正在嘗試為Firebase.
設置Flutter
web 應用程序的生產/開發。我能夠部署到我配置的第一個(生產)但不能部署到第二個(開發)。 我收到此錯誤:
=== Deploying to 'my-app-dev'...
i deploying hosting i hosting[my-app-dev]: beginning deploy... i
hosting[my-app-dev]: found 27 files in build/web ⠋ hosting: uploading
new files [3/21] (14%) Error: Task
1c5e4be41a8a2901d8c9ae4edb5c2bd26c5c4d0564d732a3ce2bef7c6c27bcb0
failed: retries exhausted after 6 attempts, with error: The "path"
argument must be of type string. Received undefined ⠸ hosting:
uploading new files [4/21] (19%)
我正在運行以下命令:
firebase use my-app-dev
flutterfire configure --project=my-app-dev
flutter build web
firebase deploy
注意:如果我改用my-app-prod
,它會完美運行。
我究竟做錯了什么?
我遇到了同樣的問題,並通過接下來的兩個步驟解決了它:
1- 從項目的根文件夾中刪除.firebase
文件夾
2-嘗試使用firebase deploy
再次部署您的項目
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.