Giter Site home page Giter Site logo

react-redux-nextjs-material-ui-pwa-starter's Issues

Could not find "store" in either the context or props of "Connect(WithStyles(Layout))"

Hi @MacKentoch ,
I run your code, It have an error:

Automatic fallback to connect has been performed, please check your code.
{ Invariant Violation: Could not find "store" in either the context or props of "Connect(WithStyles(Layout))". Either wrap the root component in a <Provider>, or explicitly pass "store" as a prop to "Con
nect(WithStyles(Layout))".
    at invariant (D:\WORK\Libs\react-redux-nextjs-material-ui-pwa-starter-master\node_modules\invariant\invariant.js:42:15)
    at new Connect (D:\WORK\Libs\react-redux-nextjs-material-ui-pwa-starter-master\node_modules\react-redux\lib\components\connectAdvanced.js:134:33)
    at resolve (D:\WORK\Libs\react-redux-nextjs-material-ui-pwa-starter-master\node_modules\react-dom\cjs\react-dom-server.node.development.js:2100:14)
    at ReactDOMServerRenderer.render (D:\WORK\Libs\react-redux-nextjs-material-ui-pwa-starter-master\node_modules\react-dom\cjs\react-dom-server.node.development.js:2260:22)
    at ReactDOMServerRenderer.read (D:\WORK\Libs\react-redux-nextjs-material-ui-pwa-starter-master\node_modules\react-dom\cjs\react-dom-server.node.development.js:2234:19)
    at renderToString (D:\WORK\Libs\react-redux-nextjs-material-ui-pwa-starter-master\node_modules\react-dom\cjs\react-dom-server.node.development.js:2501:25)
    at Object.renderPage (D:\WORK\Libs\react-redux-nextjs-material-ui-pwa-starter-master\node_modules\next\dist\server\render.js:174:26)
    at Function._callee$ (D:\WORK\Libs\react-redux-nextjs-material-ui-pwa-starter-master\pages\_document.js:56:21)
    at tryCatch (D:\WORK\Libs\react-redux-nextjs-material-ui-pwa-starter-master\node_modules\regenerator-runtime\runtime.js:62:40)
    at Generator.invoke [as _invoke] (D:\WORK\Libs\react-redux-nextjs-material-ui-pwa-starter-master\node_modules\regenerator-runtime\runtime.js:296:22) name: 'Invariant Violation', framesToPop: 1 }


How to fix it? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.