Deployment getting failed for Migrated Fiori project

オープン
#1,057 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, node.js
領域
build-system, cli

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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)

主要言語
JavaScript
スター
510
フォーク
80
平均マージ
2日 22時間
マージ済み PR(30日)
12

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

UI5/cli のほかの issue

UI5/cli の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。