ビルドステップでパイプラインのデプロイメントが失敗する

ビルドステップ中にパイプラインのデプロイメントに失敗した場合は、ノードのバージョンを見つけて ui.frontend/package.json ファイルに追加します。

説明 description

環境

Adobe 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 オブジェクト:例:"devDependencies":

メモ:

  1. v の送信元 < nodeVersion> v10.13.0 をコピーしないでください。

  2. ノードのバージョンは、お客様のケースでは異なる可能性があります。 例: 12.22.7

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