Failure to serve local transpiled TypeScript library files correctly using workspace configuration
維護者通常 2 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- typescript
- 領域
- build-system, cli
研究方向
Start by reproducing the workspace configuration from the listed steps with a TypeScript UI5 app and library, then run ui5 serve and inspect logoutput.txt. Trace how the app descriptor's library dependency is mapped to the library's dist/resources path. Done means the local library.js is served without copying it into src/.
由索引模型根據 Issue 內容生成。
描述
Expected Behavior
When adding a local TypeScript UI5 library to my UI5 app descriptor and using the UI5 Tooling workspace configuration, the UI5 Tooling should recognize the library as being implemented in TypeScript and serve the transpiled files via the webserver when running the app using ui5 serve.
Current Behavior
While using ui5 serve the UI5 app tries to fetch the library.js file, resulting in an error failed to load 'mylibrary/library.js' from resources/mylibrary/library.js: script load error
Copying the the transpiled file from dist/resources/mylibrary/library.js to src/ results in the browser being able to load this specific file.
Steps to Reproduce the Issue
- Create a TypeScript UI5 app using
yo easy-ui5 - Create a TypeScript UI5 library using
yo easy-ui5 - Set up the workspace configuration as described in UI5 Tooling documentation UI5 Tooling - Development Overview
- Add the local library in the app descriptor under
sap.ui5>dependencies>libs - Run
ui5 servein app directory - The browser console will show an error when trying to retrieve
library.js
Context
- UI5 Module Version (output of
ui5 --versionwhen using the CLI):4.0.0 - Node.js Version:
20.11.0 - npm Version:
10.2.4 - OS/Platform:
macOS Sonoma 14.5 - Browser (if relevant):
unknown - Other information regarding your environment (optional):
nothing
Log Output / Stack Trace
- 主要語言
- JavaScript
- 星號
- 510
- 分支
- 80
- 平均合併
- 2 天 22 小時
- 30 天內合併 PR
- 12
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
UI5/cli 的其他 Issue
-
Build cache: buildThemes cache is invalidated by irrelevant library.js / .library content changes未關閉module/ui5-builder module/ui5-fs module/ui5-project
難度 3/5 1-2 天 新手友好度 76/100
維護者通常 2 天內回覆
-
module/ui5-project
難度 4/5 3-5 天 新手友好度 64/100
維護者通常 2 天內回覆
-
[ROADMAP] UI5 CLI 6.0 / Specification Version 6.0可能重新可做 @flovogt 於 116 天前認領,目前沒有進行中的 PR。 未關閉roadmap
UI5/cli#1485 · 1 個 reaction · 已指派 1 人 ·
維護者通常 2 天內回覆
-
build excludes from application project are not applied to dependencies可能重新可做 @flovogt 於 90 天前認領,目前沒有進行中的 PR。 未關閉
UI5/cli#1446 · 3 則留言 · 已指派 1 人 ·
維護者通常 2 天內回覆
-
help provided
難度 4/5 3-5 天 新手友好度 35/100
維護者通常 2 天內回覆
相似的 Issue
-
backlog
難度 2/5 1-3 小時 新手友好度 72/100
sagemathinc/sagebrush#3434 ·
維護者通常 1 天內回覆
-
New tool: BioFigure可能已有人在做 @github-actions 今天認領。 未關閉submission triage
難度 1/5 1 小時以內 新手友好度 70/100
kausalflow/tools#386 · 1 則留言 ·
維護者通常 1 天內回覆
-
Bug
難度 2/5 1-3 小時 新手友好度 82/100
-
issue(a11y): at 320 px wide, the EXPERIMENTAL badge breaks in the middle of the word可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉bug confirmed issue
難度 1/5 1 小時以內 新手友好度 90/100
open-webui/open-webui#35507 · 2 則留言 ·
維護者通常 1 天內回覆
-
beginner-friendly category:tests community enhancement first-timers-only good first issue help wanted low hanging fruit micro-contribution type: task up-for-grabs
難度 1/5 1 小時以內 新手友好度 95/100
Berserk-hub150/skillhawk#300 · 1 則留言 ·