인프런 커뮤니티 질문&답변

부드러운 캥거루님의 프로필 이미지
부드러운 캥거루

작성한 질문수

[리뉴얼] React로 NodeBird SNS 만들기

리덕스 실제 구현하기

Redux관련 오류 질문드립니다.

작성

·

710

1

안녕하세요 제로초님.

아래와 같은 오류사항이 있는데 답을찾을 수 없어 질문드립니다.

서버에 접속하면 페이지에 다음과같은 문구가 뜨고

오류 내용은 다음과 같습니다.

---------------------------------------------------------

/!\ You are using legacy implementaion. Please update your code: use createWrapper() and wrapper.withRedux().

error - TypeError: _store_configureStore__WEBPACK_IMPORTED_MODULE_4__.default.withRedux is not a function

    at Module../pages/_app.js (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:163:126)

    at __webpack_require__ (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:23:31)

    at Object.0 (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:273:18)

    at __webpack_require__ (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:23:31)

    at module.exports../node_modules/antd/dist/antd.css (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:91:18)

    at Object.<anonymous> (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:94:10)

    at Module._compile (internal/modules/cjs/loader.js:778:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

    at Module.load (internal/modules/cjs/loader.js:653:32)

    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

TypeError: _store_configureStore__WEBPACK_IMPORTED_MODULE_4__.default.withRedux is not a function

    at Module../pages/_app.js (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:163:126)

    at __webpack_require__ (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:23:31)

    at Object.0 (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:273:18)

    at __webpack_require__ (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:23:31)

    at module.exports../node_modules/antd/dist/antd.css (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:91:18)

    at Object.<anonymous> (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:94:10)

    at Module._compile (internal/modules/cjs/loader.js:778:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

    at Module.load (internal/modules/cjs/loader.js:653:32)

    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

error - TypeError: _store_configureStore__WEBPACK_IMPORTED_MODULE_4__.default.withRedux is not a function

    at Module../pages/_app.js (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:163:126)

    at __webpack_require__ (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:23:31)

    at Object.0 (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:273:18)

    at __webpack_require__ (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:23:31)

    at module.exports../node_modules/antd/dist/antd.css (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:91:18)

    at Object.<anonymous> (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:94:10)

    at Module._compile (internal/modules/cjs/loader.js:778:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

    at Module.load (internal/modules/cjs/loader.js:653:32)

    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

TypeError: _store_configureStore__WEBPACK_IMPORTED_MODULE_4__.default.withRedux is not a function

    at Module../pages/_app.js (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:163:126)

    at __webpack_require__ (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:23:31)

    at Object.0 (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:273:18)

    at __webpack_require__ (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:23:31)

    at module.exports../node_modules/antd/dist/antd.css (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:91:18)

    at Object.<anonymous> (C:\workspace\study\inflearn\react-nodebird\front\.next\server\pages\_app.js:94:10)

    at Module._compile (internal/modules/cjs/loader.js:778:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

    at Module.load (internal/modules/cjs/loader.js:653:32)

    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

--------------------------------------------------------

아래는 제 git 주소입니다.

-----------------------------------------------

https://github.com/812jay/react-nodebird

-----------------------------------------------

감사합니다.

답변 2

1

제로초(조현영)님의 프로필 이미지
제로초(조현영)
지식공유자

import {createWrapper} 입니다.

0

해결되었어요~ 빠른답변 감사드립니다!!

부드러운 캥거루님의 프로필 이미지
부드러운 캥거루

작성한 질문수

질문하기