Deployment getting failed for Migrated Fiori project

Ouverte
#1,057 9 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 2 jours

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
25/100
Type d'issue
Bug
Clarté
À clarifier
Activité
À l'abandon
Stack technique
javascript, node.js
Domaine
build-system, cli

Piste de recherche

Start by reproducing the failure with the migrated Fiori project using the reported npm run deploy or npm run deploy-test commands. Inspect node_modules/@ui5/cli/node_modules/@ui5/builder/lib/processors/minifier.js at line 222 and the related minify task; done means the project can complete its deployment build without the reported JSON.parse error.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

needs triage

Expected Behavior

  • I've downloaded a SAP UI5 project from S4 system using report "UI5 Repository Load"
  • Imported the same into BAS account
  • After importing with help of Fiori migration tool added required dependency to it
  • Added deployment configs to it
  • It's working fine in "Preview Mode"
  • It should be deployed to S4 system using "npm run deploy" command

Current Behavior

  • "npm run deploy" or "npm run deploy-test" is getting failed with below error

**Message:
Unexpected token 's', "sap.ui.def"... is not valid JSON

Stack Trace:
SyntaxError: Unexpected token 's', "sap.ui.def"... is not valid JSON
at JSON.parse ()
at file:///home/user/projects/zewm_lc_ui5_nok/zewm_lc_ui5_nok/node_modules/@ui5/cli/node_modules/@ui5/builder/lib/processors/minifier.js:222:33**

Steps to Reproduce the Issue

  • I've downloaded a SAP UI5 project from S4 system using report "UI5 Repository Load"
  • Imported the same into BAS account
  • After importing with help of Fiori migration tool added required dependency to it
  • Added deployment configs to it
  • It's working fine in "Preview Mode"
  • It should be deployed to S4 system using "npm run deploy" command

Context

  • UI5 Module Version (output of ui5 --version when using the CLI): unknown
  • Node.js Version: unknown
  • npm Version: unknown
  • OS/Platform: unknown
  • Browser (if relevant): unknown
  • Other information regarding your environment (optional): nothing

Log Output / Stack Trace

0 verbose cli /local/asdf-inst-inbox-runtime/installs/nodejs/22.13.1/bin/node /home/user/.asdf-inst/installs/nodejs/22.13.1/bin/npm
1 info using [email protected]
2 info using [email protected]
3 silly config load:file:/local/asdf-inst-inbox-runtime/installs/nodejs/22.13.1/lib/node_modules/npm/npmrc
4 silly config load:file:/home/user/.npmrc
5 silly config load:file:/home/user/.node_modules_global/etc/npmrc
6 verbose title npm root
7 verbose argv "root" "--global"
8 verbose logfile logs-max:10 dir:/home/user/.npm/_logs/2025-05-14T13_04_55_234Z-
9 verbose logfile /home/user/.npm/_logs/2025-05-14T13_04_55_234Z-debug-0.log
10 verbose cwd /
11 verbose os Linux 6.6.63-cloud-amd64
12 verbose node v22.13.1
13 verbose npm v10.9.2
14 verbose exit 0
15 info ok

Message:
Unexpected token 's', "sap.ui.def"... is not valid JSON

Stack Trace:
SyntaxError: Unexpected token 's', "sap.ui.def"... is not valid JSON
at JSON.parse ()
at file:///home/user/projects/zewm_lc_ui5_nok/zewm_lc_ui5_nok/node_modules/@ui5/cli/node_modules/@ui5/builder/lib/processors/minifier.js:222:33
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Promise.all (index 34)
at async default (file:///home/user/projects/zewm_lc_ui5_nok/zewm_lc_ui5_nok/node_modules/@ui5/cli/node_modules/@ui5/builder/lib/tasks/minify.js:32:29)
at async TaskRunner._executeTask (file:///home/user/projects/zewm_lc_ui5_nok/zewm_lc_ui5_nok/node_modules/@ui5/cli/node_modules/@ui5/project/lib/build/TaskRunner.js:447:3)
at async TaskRunner.runTasks (file:///home/user/projects/zewm_lc_ui5_nok/zewm_lc_ui5_nok/node_modules/@ui5/cli/node_modules/@ui5/project/lib/build/TaskRunner.js:124:5)
at async ProjectBuilder.build (file:///home/user/projects/zewm_lc_ui5_nok/zewm_lc_ui5_nok/node_modules/@ui5/cli/node_modules/@ui5/project/lib/build/ProjectBuilder.js:251:6)
at async ProjectGraph.build (file:///home/user/projects/zewm_lc_ui5_nok/zewm_lc_ui5_nok/node_modules/@ui5/cli/node_modules/@ui5/project/lib/graph/ProjectGraph.js:576:3)
at async Object.handleBuild [as handler] (file:///home/user/projects/zewm_lc_ui5_nok/zewm_lc_ui5_nok/node_modules/@ui5/cli/lib/cli/commands/build.js:174:2)

Langage dominant
JavaScript
Étoiles
510
Forks
80
Merge moyen
2 j 22 h
PR mergées (30 j)
12

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de UI5/cli

Toutes les issues de UI5/cli

Issues similaires

Plus d'issues JavaScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.