-
Notifications
You must be signed in to change notification settings - Fork 215
App Crashes with "No StoreProvider<Store<State>> found." on launch. #46
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
Comments
Hey hey -- sorry about the trouble! Looks like what you've pasted makes sense. Could you please also post your Thanks! |
No worries, Flutter is still in such flux that these things tend to happen. The
Maybe this is is helpful. I found it in the android IDE internal Error Log
|
I have been able to get the app to finally load without crashing. Seems the crash was related to an issue caused by incompatible google library version combinations in my pubspec.yaml. So the good new is, the crashing was unrelated to flutter_redux. However, the same problem persists with the same error Messages.
So for now we can rule out the flutter_redux package as being the cause of crashing. |
Ah, that's interesting -- but yah, still seems like you're hitting a snag with flutter_redux, as it seems like it's unable to find the Store in the Widget Tree. Is your code open source by chance? I'd be happy to dive in and take a look if so. |
Finally found the issue whew This problem was not caused by the redux package, it was directly related to strict types in Dart 2. I had a deeply nested widget in the widget tree that did not have I will close this out as it is not an issue, but an error on my part. When you have a chance, it may be noteworthy in the documentation to highlight that the StoreConnector and StoreBuilders must be typed to match the top level StoreProvider. Any deviation causes the problem that I was having. Thanks for the good work you're doing! |
Thanks @tluckett77! Dang, sorry to hear it took you a while to find this one. I think I definitely need to add an FAQ for this issue as well -- I tried to put that information in the error message that you pasted, but it looks like that wasn't helpful. |
I can't seem to get this working. My app crashes right at boot since attempting to upgrade to the latest flutter redux. Below is the currently set up that I am working with.
The Code Which is Crashing:
The Error On Build Completion:
I have checked to make sure that the app is running in Dart 2.0, and it is enabled in Android Studio -> Preferences -> Languages & Frameworks -> Flutter
The launch screen is displayed and then the AppLaunch's StoreConnector runs, since I get a log notice from my logging middleware that
store.dispatch(new AppEntryInitAction(modalModel));
action has started. At that point the App Crashes.I've tried some time trying to isolate where this is happening, and can't seem to pin-point it.
The text was updated successfully, but these errors were encountered: