Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Redux DevTools Error: Building Applications with React and Redux

I have followed the 'Building Applications with React and Redux' tutorial to the letter. I get no errors in the console. I have the Redux DevTools extension installed and when I click the 'Redux' tab, I get the message "No store found. Make sure to follow the instructions."

Does anyone know how to fix this?

1 Answer

Actually, I found the answer and hopefully it will help someone else.

In the tutorial, the instructions are to add:

const store = createStore(
  PlayerReducer,
  window.devToolsExtention && window.devToolsExtention()
);

...to Index.js.

After seeing this on GitHub:

Usage Note that starting from v2.7, window.devToolsExtension was renamed to window.REDUX_DEVTOOLS_EXTENSION / window.REDUX_DEVTOOLS_EXTENSION_COMPOSE.

...I realized that the code should be:

const store = createStore(
  PlayerReducer,
  window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
);

After making the change, it worked.