简体   繁体   English

Flutter Web 和多个部署错误

[英]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.

相关问题 “未捕获的错误:”在 Flutter Firebase 部署中 - "Uncaught error: " in Flutter Firebase deployment Troubleshooting Dart XMLHttpRequest error - works for Flutter mobile, not for Flutter web - Troubleshooting Dart XMLHttpRequest error - works for Flutter mobile, not for Flutter web FCM getToken() Failed to register a ServiceWorker for scope 错误 Flutter web - FCM getToken() Failed to register a ServiceWorker for scope error Flutter web Flutter Web 与 Firebase,错误“dart_sdk.js 没有模块” - Flutter Web with Firebase, error "No module for dart_sdk.js" Flutter:cloud_firestore_web-3.1.1 错误:找不到方法:'FallThroughError' - Flutter: cloud_firestore_web-3.1.1 Error: Method not found: 'FallThroughError' FireBase 存储在 flutter web - FireBase Storage in flutter web XMLHttpRequest 错误 flutter web [启用 CORS AWS API 网关] - XMLHttpRequest error in flutter web [Enabling CORS AWS API gateway] Firebase 身份验证未在 Flutter Web 上持续 - Firebase Authentication is not persisted on Flutter Web Google App Engine 上的部署错误 - 上传 0 个文件 - Deployment error on Google App Engine - Uploading 0 files 为什么 firebase 不能与 flutter web 一起使用? - Why firebase not working with flutter web?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM