La distribuzione della pipeline non riesce durante il passaggio di generazione
Individua e aggiungi la versione del nodo al file ui.frontend/package.json se durante la fase di build la distribuzione della pipeline non riesce.
Descrizione description
Ambiente
Experience Manager as a Cloud Service
Problema/Sintomi
L’esecuzione della pipeline non riesce durante la fase di build a causa di errori nel ui.frontend
codice.
In sono presenti messaggi di ERRORE come quelli riportati di seguito build.log
file:
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]
Risoluzione resolution
Segui i passaggi indicati di seguito:
-
Individua nella radice dell’archivio Git il file
pom.xml,
e trova la versione del nodo, ad esempio,<nodeVersion>v10.13.0</nodeVersion>
-
Individua
ui.frontend/package.json,
e aggiungi nel già presentedevDependencies
oggetto: ad esempio, "devDependencies":
Nota:
-
La v da
<
nodeVersion>
v10.13.0 non deve essere copiato. -
La versione del nodo, nel tuo specifico caso, potrebbe essere diversa. Ad esempio: 12.22.7