-
Notifications
You must be signed in to change notification settings - Fork 219
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
The getter 'store' was called on null #38
Comments
Sorry about that! I need to add one more error case to the error message: How are you importing your files? If you're using relative paths, e.g. If that's not the case, could you please provide a bit more code, even a repo with the code that's failing? That way I can help debug :) |
Thanks @brianegan for your answer, but trying to import with absolute path didn't change anything, the error message is still there.
my store:
and in my TestApp basically there's a StoreConnector that causes the error, nothing happens if I avoid to use that.
The error:
|
Hrm, interesting -- could you please check your Thanks! |
Thanks again for your help, looks like I'm on the correct version:
|
Hrm, this is odd... I can't quite reproduce the issue, and it's a bit baffling that you're getting that particular error message, since the code explicitly does a null-check before accessing the store :( Does the example app in this repo run for you without issue? Another option: Could you please try accessing the store directly via |
The example in this repo works correctly. |
Now the error is different. My code:
It throws this error:
Which is quite weird because my StoreProvider is implemented like:
|
Hey @darioielardi -- Ok, making progress! That's definitely the error you should be seeing. However, this is an odd one since it seems as though you're following the directions. The last thing I could think of: Does your Please see this issue for more details and an open-source example that's been fixed: #35 |
In some way I solved the problem. Basically I created another project, and copy-pasting the code the same error was thrown, but when I tried to rewrite it (without referring at the previous version) everything worked. Then I figured out that it depended on the imports, as @brianegan told me some comments above, so using only relatives imports everything was okay, so I tried to replace every absolute import on the previous project with a relative one, but it didn't work, probably due to some other messy stuff. Now I'm working on the second project. |
Ok, voodoo magic. I'm at IO and will see if I can chat with a Dart team member about this issue :) A lot of peeps suffer from it! |
Hi,
I'm trying to implement redux on my flutter app, versions:
When I run my app the error in the title is thrown.
I followed the Dart 2 migration guide for both the packages.
Flutter: 0.2.8
Dart: 2.0.0
The text was updated successfully, but these errors were encountered: