Ignite: Cannot read property 'name' of undefined

Created on 18 Apr 2017  路  6Comments  路  Source: infinitered/ignite

When I try to change the name of a Saga/Redux (LoginSagas -> OAuthSagas & LoginRedux -> OAuthRedux) I always got the error:
at takeLatestHelper TypeError: Cannot read property 'name' of undefined
Of course I renamed all necessary variables and files...

abandoned question

Most helpful comment

I had the SAME issue.... took me a few minutes but the undefined refers to the worker in takeLatest (ie the saga function itself). it's being passed undefined, which likely means a non-existent function is being imported from the saga. I double checked what was referenced in Sagas/index.js and what was exported in my saga file. In my case, it was a typo.

I would guess with @Spacelapp , he may not have updated Sagas/index.js to reflect the new function names.

All 6 comments

Did you check the index.js in the folder as well? Which has references?

Also, make sure you turn off rehydrate in the redux rehydrate config in Config folder. It might be loading old state with no place to put it.

@Spacelapp Did you get this figured out?

Going to close as abandoned, but if you are still having trouble with this I'll reopen. Thanks!

@Spacelapp Did you ever figure this out?

I had the SAME issue.... took me a few minutes but the undefined refers to the worker in takeLatest (ie the saga function itself). it's being passed undefined, which likely means a non-existent function is being imported from the saga. I double checked what was referenced in Sagas/index.js and what was exported in my saga file. In my case, it was a typo.

I would guess with @Spacelapp , he may not have updated Sagas/index.js to reflect the new function names.

Just had this issue - my problem was that I wasn't importing my saga function properly (also typo), but the 'name undefined' was the only error it was throwing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vesper8 picture vesper8  路  3Comments

wisn picture wisn  路  3Comments

GantMan picture GantMan  路  3Comments

tayfunyasar picture tayfunyasar  路  3Comments

whalemare picture whalemare  路  3Comments