-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Unhandled Rejection (TypeError): Cannot read property '0' of null #110
Comments
This error comes from this commit: #105 |
Reverting
|
Hi I reverted to "0.9.5", the application won't crash. However, the items (comments, tags) cannot load. Always stay in "Loading". Any thought? |
@Taroka |
In ~\src\components\Home\index.js change line 37 from:
to
The issue is the promise is being passed to the reducer before the API calls have finished. Ideally, that would be in a thunk so the component isn't making API calls directly (nor do you run into this particular issue). But it looks like that is done everywhere. I'm not sure if this is the correct fix since I assume this has been working for some time since that line hasn't changed in a year. But this should help you work around the issue until someone more knowledgeable with the code base can do a true fix. Hope this helps. |
@Spenhouet After changing the scripts version, it shows no error but is forever loading! Are you using django backend? |
I cloned the current state of this repo and directly started it:
And directly get this error:
The text was updated successfully, but these errors were encountered: