일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- velog
- 코딩테스트실력진단
- 알고리즘
- react-query
- git
- JavaScript
- tshaped
- globalcommunity
- TypeScript
- iOSDeveloper
- SWIFT
- ios
- frontend
- Xcode
- NextJs
- 프로그래머스
- 회고
- error
- UIKit
- Apple Developer Academy
- 코드트리
- Front-end
- 자바스크립트
- react
- 프론트엔드
- 코딩테스트
- AppleDeveloperAcademy
- 프로젝트
- swiftUI
- 코드트리챌린지
Archives
- Today
- Total
Moon Work
[netlify] 호스팅 exit code 1 에러 해결하기 본문
code 1 error
기존에 다른 호스팅 사이트를 사용하다가 netlify를 통해 호스팅을 시도해보려 했는데 계속 다음과 같은 에러가 발생하였다.
해결
build command에 문제가 있었다. 기존 CRA로 만든 앱의 package.json에 있는 command는 아래와 같이 생겼다.
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
npm run build command를 netlify에서 진행하는데 이때 build command 앞에 CI= 를 붙이면 정상적으로 netlify에서 build가 진행되었다.
"scripts": {
"start": "react-scripts start",
"build": "CI= react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
'에러처리' 카테고리의 다른 글
[Swift] outlet connection error / 스토리보드 파일 연결 에러 (0) | 2023.02.27 |
---|---|
[Git] git merge --no-ff Xcode 에러 해결하기 (0) | 2023.02.04 |
[CORS] Cors를 처리해도 Cors 에러가 나는 경우(with Credentials) (0) | 2022.12.28 |
에러처리: [eslint] Failed to load plugin 'jsx-a11y' declared in 'package.json (0) | 2022.12.03 |
[Typescript] React props key error (0) | 2022.08.10 |