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

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

강기석님의 프로필 이미지
강기석

작성한 질문수

React로 NodeBird SNS 만들기

SSH환경에서 빌드가 되질 않습니다.

작성

·

255

0

SSH환경에서 빌드가 되질 않습니다.

로컬환경에서는 잘되는데 무엇이 문제인가요.. ㅜㅜ 

아래 에러 메세지입니다.

로컬 환경은 mac을 사용하고 있으며, next 9

Nodejs 12.4.0 버전을 사용하고 있습니다.

Failed to compile.

./pages/profile/index.js

Module not found: Can't resolve '../../components/unLoggedIn' in '/home/ubuntu/nodebird/front/pages/profile'

> Build error occurred

Error: > Build failed because of webpack errors

    at build (/home/ubuntu/nodebird/front/node_modules/next/dist/build/index.js:9:900)

    at processTicksAndRejections (internal/process/task_queues.js:89:5)

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! front@1.0.0 build: `ANALYZE=true next build`

npm ERR! Exit status 1

npm ERR! 

npm ERR! Failed at the front@1.0.0 build script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR!     /root/.npm/_logs/2019-12-11T06_01_29_034Z-debug.log

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! front@1.0.0 prestart: `NODE_PATH=./ npm run build`

npm ERR! Exit status 1

npm ERR! 

npm ERR! Failed at the front@1.0.0 prestart script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR!     /root/.npm/_logs/2019-12-11T06_01_29_051Z-debug.log

답변 2

0

강기석님의 프로필 이미지
강기석
질문자

감사합니다 해결했습니다.

0

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

../../components/unLoggedIn 파일이 존재하지 않는다는데 경로와 대소문자, 확장자 같은 게 맞는지 검사해보세요.

강기석님의 프로필 이미지
강기석

작성한 질문수

질문하기