reduxjs / react-redux

Official React bindings for Redux
https://react-redux.js.org
MIT License
23.37k stars 3.37k forks source link

TypeError: (0, _reactRedux.connect) is not a function. (In '(0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)', '(0, _reactRedux.connect)' is undefined) #1516

Closed abbasmoosavi closed 4 years ago

abbasmoosavi commented 4 years ago

TypeError: (0, _reactRedux.connect) is not a function. (In '(0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)', '(0, _reactRedux.connect)' is undefined)

I imported connect from react-redux

Simulator Screen Shot - iPhone 11 - 2020-02-02 at 12 48 19

markerikson commented 4 years ago

This is likely a problem with your build environment.

If you can reproduce the problem with a new project, we might be able to take a look, but we definitely can't do anything with just a screenshot.

matinzd commented 4 years ago

This is likely a problem with your build environment.

If you can reproduce the problem with a new project, we might be able to take a look, but we definitely can't do anything with just a screenshot.

There wasn't any problem since the day before until we ran yarn. Project was up and running and we didn't do anything. All modules are imported properly and our redux environment and configuration was from 2 months ago.

ShruthiShetty-2218 commented 4 years ago

Instead of connect if you are used any other function while exporting . you may get this problem .