fabien0102 / gatsby-starter

Gatsby 2.0 starter with typescript and many cools dev tools
386 stars 99 forks source link

Error: Could not find "store" in either the context or props of "Connect(Component)". Either wrap the root component in a <Provider>, or explicitly pass "store" as a prop to "Connect(Component)". #54

Open 2manypistachios opened 6 years ago

2manypistachios commented 6 years ago

Error: Could not find "store" in either the context or props of "Connect(Component)". Either wrap the root component in a , or explicitly pass "store" as a prop to "Connect(Component)".

Replicate: gatsby new my-website https://github.com/fabien0102/gatsby-starter npm install npm start

Using npm 5.7.1, gatsby 1.1.45. Seems like the project just needs to get updated, because without npm install I had no issues.

sielay commented 6 years ago

It's addressed in https://github.com/fabien0102/gatsby-starter/pull/53 . We need to resolve other gatsby related issue first to merge it.

sielay commented 6 years ago

In meantime @2manypistachios you can use that code to patch it on your side https://github.com/fabien0102/gatsby-starter/pull/53/files#diff-ac5902cb929f2d554fe90c432997e6f5R10

sielay commented 6 years ago

@2manypistachios did workaround worked for you? Does anyone have the same problem?

Also after updating dependencies that's how I addressed most of the issues: https://github.com/sielay/sielay.com/commit/ff9cd684f1a189071fb01dddc1b1001cea26bc28