빌드 단계에서 파이프라인 배포 실패

빌드 단계 중에 파이프라인 배포가 실패하는 경우 노드 버전을 찾아 ui.frontend/package.json 파일에 추가합니다.

설명 description

환경

Experience Manager as a Cloud Service

문제/증상

빌드 단계에서 의 오류로 인해 파이프라인 실행이 실패했습니다. ui.frontend 코드.

다음에서 아래와 같은 오류 메시지를 관찰합니다. build.log 파일:

12:52:44,558 [ Exec Stream Pumper]  [ INFO]  ERROR in /build_root/build/<program>/ui.frontend/node_modules/@types/node/ts4.8/util.d.ts
12:52:44,559 [ Exec Stream Pumper]  [ INFO]  [ tsl]  ERROR in /build_root/build/<program>/ui.frontend/node_modules/@types/node/ts4.8/util.d.ts(1485,42)
12:52:44,561 [ Exec Stream Pumper]  [ INFO]  TS1005: ',' expected.
12:52:44,561 [ Exec Stream Pumper]  [ INFO]
12:52:44,561 [ Exec Stream Pumper]  [ INFO]  ERROR in /build_root/build/<program>/ui.frontend/node_modules/@types/node/ts4.8/util.d.ts
12:52:44,562 [ Exec Stream Pumper]  [ INFO]  [ tsl]  ERROR in /build_root/build/<program>/ui.frontend/node_modules/@types/node/ts4.8/util.d.ts(1485,44)
12:52:44,563 [ Exec Stream Pumper]  [ INFO]  TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
12:52:44,563 [ Exec Stream Pumper]  [ INFO]
12:52:44,563 [ Exec Stream Pumper]  [ INFO]  ERROR in /build_root/build/<program>/ui.frontend/node_modules/@types/node/ts4.8/util.d.ts
12:52:44,564 [ Exec Stream Pumper]  [ INFO]  [ tsl]  ERROR in /build_root/build/<program>/ui.frontend/node_modules/@types/node/ts4.8/util.d.ts(1485,57)
12:52:44,564 [ Exec Stream Pumper]  [ INFO]  TS1005: ';' expected.
12:52:44,564 [ Exec Stream Pumper]  [ INFO]

해결 방법 resolution

아래 단계를 따르십시오.

  1. Git 저장소의 루트에서 파일 찾기 pom.xml, 노드 버전을 찾습니다. 예: <nodeVersion>v10.13.0</nodeVersion>

  2. 찾기 ui.frontend/package.json, 및 을(를) 이미 있는 에 추가합니다. devDependencies object: 예: "devDependencies":

참고:

  1. 의 v < nodeVersion> v10.13.0 은(는) 복사하지 않아야 합니다.

  2. 해당 노드 버전은 다를 수 있습니다. 예: 12.22.7

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f