작성
·
163
0
TypeError: Cannot read property 'getState' of undefined at C:\Users\MiRcomputer\Documents\GitHub\react-nodebird\front\node_modules\react-redux\lib\components\Provider.js:31:18 at Object.useMemo (C:\Users\MiRcomputer\Documents\GitHub\react-nodebird\front\node_modules\react-dom\cjs\react-dom-server.node.development.js:1239:19) at useMemo (C:\Users\MiRcomputer\Documents\GitHub\react-nodebird\front\node_modules\react\cjs\react.development.js:1521:21) at Provider (C:\Users\MiRcomputer\Documents\GitHub\react-nodebird\front\node_modules\react-redux\lib\components\Provider.js:30:42) at processChild (C:\Users\MiRcomputer\Documents\GitHub\react-nodebird\front\node_modules\react-dom\cjs\react-dom-server.node.development.js:3043:14) at resolve (C:\Users\MiRcomputer\Documents\GitHub\react-nodebird\front\node_modules\react-dom\cjs\react-dom-server.node.development.js:2960:5) at ReactDOMServerRenderer.render (C:\Users\MiRcomputer\Documents\GitHub\react-nodebird\front\node_modules\react-dom\cjs\react-dom-server.node.development.js:3435:22) at ReactDOMServerRenderer.read (C:\Users\MiRcomputer\Documents\GitHub\react-nodebird\front\node_modules\react-dom\cjs\react-dom-server.node.development.js:3373:29) at renderToString (C:\Users\MiRcomputer\Documents\GitHub\react-nodebird\front\node_modules\react-dom\cjs\react-dom-server.node.development.js:3988:27) at render (C:\Users\MiRcomputer\Documents\GitHub\react-nodebird\front\node_modules\next\dist\next-server\server\render.js:83:16) at Object.renderPage (C:\Users\MiRcomputer\Documents\GitHub\react-nodebird\front\node_modules\next\dist\next-server\server\render.js:419:16) at Function.getInitialProps (C:\Users\MiRcomputer\Documents\GitHub\react-nodebird\front\.next\server\static\development\pages\_document.js:293:19) at Object.loadGetInitialProps (C:\Users\MiRcomputer\Documents\GitHub\react-nodebird\front\node_modules\next\dist\next-server\lib\utils.js:59:29) at Object.renderToHTML (C:\Users\MiRcomputer\Documents\GitHub\react-nodebird\front\node_modules\next\dist\next-server\server\render.js:423:36) at async DevServer.renderToHTMLWithComponents (C:\Users\MiRcomputer\Documents\GitHub\react-nodebird\front\node_modules\next\dist\next-server\server\next-server.js:651:26) at async DevServer.renderToHTML (C:\Users\MiRcomputer\Documents\GitHub\react-nodebird\front\node_modules\next\dist\next-server\server\next-server.js:798:28)
구글링 해봐도 답을 못찾겠어서 질문 드려요....
어디가 잘못됐는지 도통 모르겠네요 .. ㅠ
https://github.com/pym7857/react-nodebird/tree/master/front
3-4 장 까지 코드는 모두 깃허브에 올렸습니다..
어디가 잘못됐을까요 제로초님... ㅠㅠㅠㅠㅠㅠㅠ
답변 1
1
현재 antd4버전 next9버전을 쓰고 계신데 이러면 코드가 많이 달라집니다.
강좌는 antd3버전 next8버전 기준입니다.
https://github.com/ZeroCho/react-nodebird/blob/master/ch3/front/package.json