管道部署在建置步驟期間失敗
如果在建置步驟中,您的管道部署失敗,請找到節點版本並將其新增到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
請依照下列步驟執行:
-
在Git存放庫的根目錄中找到檔案
pom.xml,
,並尋找節點版本,例如<nodeVersion>v10.13.0</nodeVersion>
-
找到
ui.frontend/package.json,
並在已經存在的devDependencies
物件中新增:
例如「devDependencies」:
注意:
-
不得複製來自
<
nodeVersion>
v10.13.0 的v。 -
您的節點版本可能不同。例如: 12.22.7
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f