인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

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

terecal님의 프로필 이미지
terecal

작성한 질문수

React로 NodeBird SNS 만들기

8-14. S3에 이미지 업로드

로컬 front build 시에

작성

·

123

0

axios is not defied 에러가 발생하는데 이유를 못찾겠어여 ㅈㅅ;

> Build error occurred
ReferenceError: axios is not defined
    at Module.1TCz (C:\node_bird_55\front\.next\server\static\HBX-BrMweDmiGw6HZbmE7\pages\_app.js:1170:1)
    at __webpack_require__ (C:\node_bird_55\front\.next\server\static\HBX-BrMweDmiGw6HZbmE7\pages\_app.js:23:31)
    at Object.0 (C:\node_bird_55\front\.next\server\static\HBX-BrMweDmiGw6HZbmE7\pages\_app.js:167:18)
    at __webpack_require__ (C:\node_bird_55\front\.next\server\static\HBX-BrMweDmiGw6HZbmE7\pages\_app.js:23:31)
    at C:\node_bird_55\front\.next\server\static\HBX-BrMweDmiGw6HZbmE7\pages\_app.js:91:18
    at Object.<anonymous> (C:\node_bird_55\front\.next\server\static\HBX-BrMweDmiGw6HZbmE7\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)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at hasCustomAppGetInitialProps (C:\node_bird_55\front\node_modules\next\dist\build\utils.js:16:711)
    at Promise.all.pageKeys.map (C:\node_bird_55\front\node_modules\next\dist\build\index.js:9:3228)

git
https://github.com/hyunsokstar/node_bird_55

답변 2

0

terecal님의 프로필 이미지
terecal
질문자

 front/sagas/index.js에서 임포트를 빼먹었어여 ㅈㅅ;

0

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

app.js에서 import axios 하셨나요?

terecal님의 프로필 이미지
terecal

작성한 질문수

질문하기