bradtraversy / redux_crash_course

Simple implementation of Redux with React 16
412 stars 326 forks source link

TypeError: b is undefined #2

Open seersol92 opened 6 years ago

seersol92 commented 6 years ago

typerror

MMajdeb commented 6 years ago

You have to install redux dev tool chrome extension and react chrome extension.

mrgaganchohan commented 6 years ago

So , why I need to install these extensions ??It works with these extensions , but the end user won't be having these and why do we need this ?

seersol92 commented 6 years ago

just for development purpose. to debug app

mrgaganchohan commented 6 years ago

Sorry , for silly question , but shouldn't the user be able to run the app (website) without extension? I get error without the extension

seersol92 commented 6 years ago

you can comment that line simply

seersol92 commented 6 years ago
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
aruzikulov commented 5 years ago

any solution? I also have the same issue

nestornav commented 5 years ago

I've the same problem but when I try to run my app in Firefox or Safari. But for Chrome the app runs well. I found some insight in this post.

I hope these could be a bit of light for your issues.

DanielRobles7 commented 5 years ago

a mi me salio porque estaba ejecutando mi proyecto en chrome utilizando redux y "window.REDUX_DEVTOOLS_EXTENSION && window.REDUX_DEVTOOLS_EXTENSION()" al correrlo en firefox u otro navegador saltaba el error. lo solucioné documentando esa linea

nestornav commented 5 years ago

@DanielRobles7 ese error entiendo que si tenés instaladas las dev tools no debería sucederte.

TteeNbe commented 3 years ago

espero q los ayude

const createStoreWithMiddleware = createStore( rootReducers, compose( applyMiddleware(thunk, logger), window.navigator.userAgent.includes('Chrome') ? window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__() : compose, ), )