[英]Flutter Web and multiple deployment error
I am trying to set up a production/development of a Flutter
web app for Firebase.
I am able to deploy to the first one I configured (production) but not to the second (development).我正在尝试为
Firebase.
设置Flutter
web 应用程序的生产/开发。我能够部署到我配置的第一个(生产)但不能部署到第二个(开发)。 I am getting this error:我收到此错误:
=== 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%)
I am running the following commands:我正在运行以下命令:
firebase use my-app-dev
flutterfire configure --project=my-app-dev
flutter build web
firebase deploy
Note: if I use my-app-prod
instead it works perfectly.注意:如果我改用
my-app-prod
,它会完美运行。
What am I doing wrong?我究竟做错了什么?
I faced the same problem and I solved it with the next two steps:我遇到了同样的问题,并通过接下来的两个步骤解决了它:
1- remove the .firebase
folder from the root folder of your project 1- 从项目的根文件夹中删除
.firebase
文件夹
2- try to deploy your project again with firebase deploy
2-尝试使用
firebase deploy
再次部署您的项目
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.