인프런 커뮤니티 질문&답변
! [remote rejected] main -> main (pre-receive hook declined),error: failed to push some refs to 오류가 뜨네요...
작성
·
339
1
heroku 빌드로그 보면
-----> Build
Running build
> fiveserver@0.1.0 build /tmp/build_b99169be
> react-scripts build
Could not find a required file.
Name: index.html
Searched in: /tmp/build_b99169be/public
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fiveserver@0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fiveserver@0.1.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! /tmp/npmcache.U7Rlz/_logs/2021-10-25T13_39_03_674Z-debug.log
-----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
Some possible problems:
- Node version not specified in package.json
https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
Love,
Heroku
! Push rejected, failed to compile Node.js app.
! Push failed
이렇게 나와있어요 진짜 며칠 째 고생 중이네요 ㅠㅠ





ㅎㅎ헤로쿠 삭제하고 다시 만들어서 해결했습니다!!