작성
·
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