question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Redux Uncaught Error: It looks like you are passing several store enhancers to createStore()

See original GitHub issue

Hi,

Since a couple of days I can’t access to my remote web appplication anymore while enabling Redux Devtools in Chrome.

I tried to reinstall the extension and to clean all browsing data but it didn’t resolve the error. Currently I have to test my application served by npm on localhost, or by using incognito mode.

The detailed error is :

Uncaught Error: It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function
    at o (redux.js:66)
    at Object.<anonymous> (index.js:16)
    at t (bootstrap b5dc8cab7b2a5da1ea64:19)
    at Object.<anonymous> (main.c859c145.js:54321)
    at t (bootstrap b5dc8cab7b2a5da1ea64:19)
    at bootstrap b5dc8cab7b2a5da1ea64:62
    at bootstrap b5dc8cab7b2a5da1ea64:62

line index.js:16 :

const store = createStore(rootReducer,
  window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(),
  applyMiddleware(thunk, reactRouterMiddleware));

Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
zenghjcommented, Nov 2, 2018

try this

const store = createStore(rootReducer, compose(applyMiddleware(thunk, reactRouterMiddleware), window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()))
8reactions
bmwcmwcommented, Nov 2, 2018

Currently it works by changing to

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(
  rootReducer,
  composeEnhancers(
    applyMiddleware(thunk, reactRouterMiddleware),
  )
);
Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Error passing several store enhancers to createStore()
Namely it tell you that you should compose your enhancers instead. Here is how to it: Step #1: Import 'compose' from redux library...
Read more >
It looks like you are passing several store enhancers ... - GitHub
I am getting this error. It looks like you are passing several store enhancers to createStore(). This is not supported.
Read more >
Error passing several store enhancers to createStore()-Reactjs
Coding example for the question React Redux - Error passing several store enhancers to createStore()-Reactjs.
Read more >
Error: It looks like you are passing several store enhancers to ...
Error: It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single...
Read more >
Production Error Codes - Redux - JS.ORG
It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found