在生成步骤中部署管道失败
如果在构建步骤中管道部署失败,请查找节点版本并将其添加到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