appbaseio / reactivemaps

A data aware UI components library for building realtime maps
https://opensource.appbase.io/reactivemaps
941 stars 44 forks source link

Could not find "store" in the context of "Connect(ReactiveMap)" #96

Closed digggggggggg closed 5 years ago

digggggggggg commented 5 years ago

I'm getting this error and I'm not sure where to go from here: Uncaught Invariant Violation: Could not find "store" in the context of "Connect(ReactiveMap)". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to Connect(ReactiveMap) in connect options.

image

image

siddharthlatest commented 5 years ago

@digggggggggg Which version of ReactiveMaps are you on? Does this happen with 3.0.0-beta.2?

digggggggggg commented 5 years ago

Yes! Is that the problem? What's the latest stable version? What version should I use?

digggggggggg commented 5 years ago

I found the cause of the problem. there was a conflict caused by multiple package.json and node_modules folders in the project.