Skip to content
Advertisement

TypeError: (0, _$$_REQUIRE(_dependencyMap[0], “redux”).createStore) is not a function react-native

I’m new in redux I’m trying to connect redux with react native when I set all and In App.js i add <provider store={store}> it display me that error: TypeError: (0, _$$_REQUIRE(_dependencyMap[0], “redux”).createStore) is not a function.

App.js

JavaScript

cunter.js

JavaScript

store.js

JavaScript

reducer.js

JavaScript

package.json

JavaScript

Advertisement

Answer

i have same problem but its solved and i just want to share.. its all happen because “npx react-native init Redux” well i try to create another react-native init with different name and move all folder from old one that i named it “Redux” then its all running normal.. so do not try to create folder or event project name with same modul thats we installed via NPM.. hope its help and enjoy your day.. thank you..

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement