TypeError: Object(...) is not a function in react-redux

If you are viewing this message now that is around 2020 with the same problem above then make sure in import statement

import { composeWithDevtools } from "redux-devtools-extension";

should be

import { composeWithDevTools } from "redux-devtools-extension";

The name is case-sensitive. You need to make sure that you get the capitalization of "DevTools" correct.


I had the same issue: I could get it to work on a test app and couldnt move it across to my main project. Checked all of the code 100 times and researched widely but couldnt find anything to make connect() work without it throwing "TypeError: Object(…) is not a function"

In the end all that was required was to update react and react-DOM in my main project as i was running a new version of redux with old react.

Just run the below in your project folder.

npm update

This error ocurred when:

  1. react-redux not available in runtime. Please check that it correctly bundled or available as global (if used from CDN)

  2. versions of react, redux incompatible with react-redux. Update some of them to the latest


I was using react-boilerplate library and did "npm update" which broke "aws-amplify" for some reason. So I unstaged my package.json and package-lock.json and went back to the previous package.json and package-lock.json ran "npm install". Suddenly "Object(...) is not a function" error got resolved.