Pipeline deployment is failing during the build step
Locate and add your node version to the ui.frontend/package.json file if during the build step your pipeline deployment fails.
Description description
Environment
Experience Manager as a Cloud Service
Issue/Symptoms
The pipeline execution is failing during the build step, due to errors in the ui.frontend
code.
You observe ERROR messages like the below in the 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 resolution
Follow the steps given below:
-
Locate in the root of the Git Repo, the file
pom.xml,
and find the node version, for e.g.,<nodeVersion>v10.13.0</nodeVersion>
-
Locate
ui.frontend/package.json,
and add in the already presentdevDependencies
object:
for e.g.,“devDependencies”:
Note:
-
The v from
<
nodeVersion>
v10.13.0 must not be copied. -
The node version might be different in your case. For e.g.: 12.22.7