React 서버 실행중 빌드 에러 해결 (CI 환경변수 설정)
Front-End/Problem 2025. 3. 18. 13:35Netlify 에서 React 프로젝트 빌드중에 아래처럼 에러가 발생
경고성 메시지 2개 때문에, 프로젝트 빌드가 되지않음.
8:27:23 PM: $ npm run build
8:27:23 PM: > react-maple-home@0.1.0 build
8:27:23 PM: > react-scripts build
8:27:30 PM:
8:27:30 PM: Failed to compile.
8:27:30 PM:
8:27:30 PM: Warning
8:27:30 PM: (3556:3) autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated.
8:27:30 PM: Warning
8:27:30 PM: (10:56891) autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated.
8:27:30 PM: [eslint]
8:27:30 PM: src/components/Header.js
8:27:30 PM: Line 2:10: 'Link' is defined but never used no-unused-vars
8:27:30 PM:
8:27:30 PM: "build.command" failed
8:27:30 PM: ────────────────────────────────────────────────────────────────
8:27:30 PM:
8:27:30 PM: Error message
8:27:30 PM: Command failed with exit code 1: npm run build (https://ntl.fyi/exit-code-1)
....
....
...
8:27:31 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
==> 해결방법
Netlify 사이트 설정에서, 아래 처럼 환경변수 CI 값을 false로 설정해 주면, 자잘한 경고성 메시지는 무시한채로 빌드 가능
'Front-End > Problem' 카테고리의 다른 글
A javascript error occurred in the main process 해결 (15) | 2020.12.13 |
---|