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

ビルド手順でパイプラインのデプロイメントが失敗した場合は、ノードのバージョンを見つけて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. < nodeVersion> v10.13.0のvをコピーすることはできません。

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

recommendation-more-help
experience-cloud-kcs-help-kbarticles