Reputation: 38
I'm using croods (A package that abstracts redux actions and reducers) on a package that I'm developing. When I put croods as peerDependencies, the library works on his example, but I can't test it without croods installed (I must install to mock it).
If I install croods as devDependency or a normal dependency on the library, the tests become ok, but on the example (that has croods installed) I keep getting the Could not find "store" in the context of (...)
.
These attempts related to dependencies/bundle are not promising. Any thoughts?
Upvotes: 0
Views: 48
Reputation: 33554
Make sure your react
, redux
, react-redux
versions all match up. I've seen this error when mixing (major) versions of react-redux
in dependencies.
Upvotes: 1