bradtraversy / mern_shopping_list

Shopping List built with MERN and Redux
605 stars 436 forks source link

TypeError: Cannot read property 'apply' of undefined #4

Open joshk132 opened 6 years ago

joshk132 commented 6 years ago

I followed the guide exactly and ran into this error. I then cloned the repo and tried it, again same error.

It refers to /src/store.js:9 which is const store = createStore(

Any ideas what this might be?

bikegcy commented 6 years ago

I met the similar error:

node_modules/redux/es/redux.js:523 TypeError: Cannot read property 'apply' of undefined.

I fixed it by just installing the chrome extension ReduxDevTools.

joshk132 commented 6 years ago

I don't have that extension at all for chrome or any other browser I tried it in.

On Jul 17, 2018 4:01 AM, Gao Chaoyu notifications@github.com wrote:

I met the similar error:

node_modules/redux/es/redux.js:523 TypeError: Cannot read property 'apply' of undefined.

I fixed it by just installing the chrome extension ReduxDevToolshttps://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/bradtraversy/mern_shopping_list/issues/4#issuecomment-405495472, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVvmNagE04lNGnqTksMk1VIx_P3SNu3Aks5uHZnigaJpZM4VQDPH.

V4NC3 commented 6 years ago

Hi!

I ran into the same issue by not having the REDUX EXTENSION. I found a way to work around with the below code by replacing the:

window.REDUX_DEVTOOLS_EXTENSION && window.REDUX_DEVTOOLS_EXTENSION()

with the below:

window.REDUX_DEVTOOLS_EXTENSION_COMPOSE ? window.REDUX_DEVTOOLS_EXTENSION_COMPOSE({ // Specify extension’s options like name, actionsBlacklist, actionsCreators, serialize... }) : compose

Hope this helps and happy Coding! :)