강의

멘토링

커뮤니티

Inflearn Community Q&A

rkdrltjr101031's profile image
rkdrltjr101031

asked

Creating NodeBird SNS with React

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

Written on

·

268

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

reactjavascript

Answer 2

0

rkdrltjr101031님의 프로필 이미지
rkdrltjr101031
Questioner

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

0

zerocho님의 프로필 이미지
zerocho
Instructor

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

rkdrltjr101031's profile image
rkdrltjr101031

asked

Ask a question