UI5 CLI 4.0 specification is incompatible with web workers
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, node.js
- Ambito
- build-system, cli
Direzione di ricerca
Start by reproducing the failure with a UI5 library containing MyWorker.js and ui5 build, using the reported specVersion 4.0.6 environment. Read the Builder documentation on JavaScript files requiring top-level scope and compare the error with the expected behavior. Done means a web worker script builds successfully under specification 4.0 without loading the UI5 framework in the worker.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
For UI5 projects utilizing web workers, the new restriction on "JavaScript Files Requiring Top Level Scope" in specification 4.0 renders the projects incompatible with the UI5 CLI build.
The problem is that a web worker script cannot be wrapped in a sap.ui.require or sap.ui.define function call since it is neither possible nor desirable to load the UI5 framework within a worker. The worker's driver scripts, by definition, run code in the global context, which the new specification prohibits.
Expected Behavior
Build completes successfully as in the previous specification versions.
Current Behavior
Builds fail with error error lbt:bundle:Builder Module {...redacted...}/SomeWorker.js requires top level scope and can only be embedded as a string (requires 'eval'), which is not supported with specVersion 4.0 and higher. For more information, see the UI5 Tooling documentation https://sap.github.io/ui5-tooling/stable/pages/Builder/#javascript-files-requiring-top-level-scope
Steps to Reproduce the Issue
- Create a UI5 library
- Add a script "MyWorker.js" somewhere in the package tree
- Add text
console.log("hello worker!")as file contents - Run ui5 build
- Note build failure on the MyWorker.js file.
Context
- UI5 Module Version (output of
ui5 --versionwhen using the CLI):4.0.6 - Node.js Version:
20.11.0 - npm Version:
10.2.4 - OS/Platform:
MacOS - Browser (if relevant):
N/A - Other information regarding your environment (optional):
nothing
Log Output / Stack Trace
{...}
- Lingua principale
- JavaScript
- Stelle
- 510
- Fork
- 80
- Merge medio
- 2g 22h
- PR unite (30g)
- 12
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di UI5/cli
-
Build cache: buildThemes cache is invalidated by irrelevant library.js / .library content changesApertamodule/ui5-builder module/ui5-fs module/ui5-project
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/100
I maintainer di solito rispondono entro 2 giorni
-
module/ui5-project
Difficoltà 4/5 3-5 giorni Idoneità per principianti 64/100
I maintainer di solito rispondono entro 2 giorni
-
[ROADMAP] UI5 CLI 6.0 / Specification Version 6.0Forse di nuovo libera @flovogt l’ha presa 116 giorni fa e non c’è nessuna pull request aperta. Apertaroadmap
UI5/cli#1485 · 1 reazione · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
-
build excludes from application project are not applied to dependenciesForse di nuovo libera @flovogt l’ha presa 90 giorni fa e non c’è nessuna pull request aperta. Aperta
UI5/cli#1446 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
I maintainer di solito rispondono entro 2 giorni
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
laaielichter/AgentHaven#294 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation P3 tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
cafebugado/backendeventos-public-api#128 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
opensearch-project/OpenSearch-Dashboards#13289 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
erkamyaman/rea-games#246 ·
I maintainer di solito rispondono entro 1 giorno