강의

멘토링

커뮤니티

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

sei yon kim님의 프로필 이미지
sei yon kim

작성한 질문수

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

error - ReferenceError: store is not defined

작성

·

680

0

섹션2의 3강을 듣고 에러가 났습니다.

configurestore.js

reducers폴더의 index.js

cmd에서 이렇게 뜹니다

error - ReferenceError: store is not defined

    at Module../reducers/index.js (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:226:1)

    at __webpack_require__ (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:23:31)

    at Module../store/configureStore.js (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:264:67)

    at __webpack_require__ (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:23:31)

    at Module../pages/_app.js (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:124:79)

    at __webpack_require__ (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:23:31)

    at Object.0 (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:292:18)

    at __webpack_require__ (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:23:31)

    at D:\인프런트위터\prepare\front\.next\server\pages\_app.js:91:18

    at Object.<anonymous> (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:94:10)

ReferenceError: store is not defined

    at Module../reducers/index.js (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:226:1)

    at __webpack_require__ (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:23:31)

    at Module../store/configureStore.js (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:264:67)

    at __webpack_require__ (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:23:31)

    at Module../pages/_app.js (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:124:79)

    at __webpack_require__ (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:23:31)

    at Object.0 (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:292:18)

    at __webpack_require__ (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:23:31)

    at D:\인프런트위터\prepare\front\.next\server\pages\_app.js:91:18

    at Object.<anonymous> (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:94:10)

error - ReferenceError: store is not defined

    at Module../reducers/index.js (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:226:1)

    at __webpack_require__ (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:23:31)

    at Module../store/configureStore.js (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:264:67)

    at __webpack_require__ (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:23:31)

    at Module../pages/_app.js (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:124:79)

    at __webpack_require__ (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:23:31)

    at Object.0 (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:292:18)

    at __webpack_require__ (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:23:31)

    at D:\인프런트위터\prepare\front\.next\server\pages\_app.js:91:18

    at Object.<anonymous> (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:94:10)

ReferenceError: store is not defined

    at Module../reducers/index.js (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:226:1)

    at __webpack_require__ (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:23:31)

    at Module../store/configureStore.js (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:264:67)

    at __webpack_require__ (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:23:31)

    at Module../pages/_app.js (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:124:79)

    at __webpack_require__ (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:23:31)

    at Object.0 (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:292:18)

    at __webpack_require__ (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:23:31)

    at D:\인프런트위터\prepare\front\.next\server\pages\_app.js:91:18

    at Object.<anonymous> (D:\인프런트위터\prepare\front\.next\server\pages\_app.js:94:10)

답변 1

0

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

기본적으로 store라는 변수를 선언하지 않으셔서 에러가 나는 것입니다. store는 따로 import하지 않으면 쓸 수 없습니다.

sei yon kim님의 프로필 이미지
sei yon kim

작성한 질문수

질문하기