-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error LateInitializate FilePicker.platform.pickFiles() web production #1602
Comments
This problem goes away if I turn off optimizations i.e., flutter build web --dart-define=Dart2jsOptimization=00
Error on Chrome Windows and Safari iOS: LateInitializationError: Field '_instance' has not been initialized. $ flutter doctor -v Using idx.google.com to develop then deploy to Firebase hosting. |
I have the same problem. Here is the log in Chrome Dev Console
|
This issue is stale because it has been open for 7 days with no activity. |
Any update? |
This issue is stale because it has been open for 7 days with no activity. |
async method is needed. |
Experiencing the same issue here. When I was running it locally, It was running fine. But when I deployed my project to production on firebase hosting. It started giving the above error. |
Flutter clean and push again solved! |
was facing something similar and found this out |
I'm facing the same problem. it's not working on production. file_picker: ^8.1.3 |
This issue is stale because it has been open for 7 days with no activity. |
Issue is still here on 8.1.4 |
I'm Still facing the same problem. it's not working on production. file_picker: ^8.1.4 |
Got it to work on production by setting version strictly to 8.1.0. file_picker: 8.1.0 |
This issue is stale because it has been open for 7 days with no activity. |
Same problem here. Workaround applied compiling with flutter build web --dart-define=Dart2jsOptimization=00 |
This issue is stale because it has been open for 7 days with no activity. |
Before creating an issue, make sure that you are on the latest
file_picker
version and that there aren't already any similar opened inssues. Also, check if it isn't described on the Wiki, specially on Troubleshooting page.Also, sometimes a simple
flutter clean
andflutter build
again with latest file_picker version, may end up by fixing cached issues, so I encourage you to first do so.Describe the bug
A clear and concise description of what the bug is. If the issue happens to be on Android, please make sure that it also happens with a different device/simulator and/or version.
Platform
Platform OS version
What version did it happen?
8.1.2
How are you picking?
The text was updated successfully, but these errors were encountered: