Failure to serve local transpiled TypeScript library files correctly using workspace configuration
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
- 35/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- typescript
- Domaine
- build-system, cli
Piste de recherche
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/.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- JavaScript
- Étoiles
- 510
- Forks
- 80
- Merge moyen
- 2 j 22 h
- PR mergées (30 j)
- 12
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de UI5/cli
-
Build cache: buildThemes cache is invalidated by irrelevant library.js / .library content changesOuvertemodule/ui5-builder module/ui5-fs module/ui5-project
Difficulté 3/5 1-2 jours Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 2 jours
-
module/ui5-project
Difficulté 4/5 3-5 jours Accessibilité débutants 64/100
Les mainteneurs répondent en général sous 2 jours
-
[ROADMAP] UI5 CLI 6.0 / Specification Version 6.0Peut-être à nouveau libre @flovogt l’a pris il y a 116 jours, et aucune pull request n’est ouverte. Ouverteroadmap
UI5/cli#1485 · 1 réaction · 1 personne assignée ·
Les mainteneurs répondent en général sous 2 jours
-
build excludes from application project are not applied to dependenciesPeut-être à nouveau libre @flovogt l’a pris il y a 90 jours, et aucune pull request n’est ouverte. Ouverte
UI5/cli#1446 · 3 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 2 jours
-
help provided
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
UI5/cli#1276 · 4 commentaires ·
Les mainteneurs répondent en général sous 2 jours
Issues similaires
-
backlog
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
sagemathinc/sagebrush#3434 ·
Les mainteneurs répondent en général sous 1 jour
-
New tool: BioFigurePeut-être pris @github-actions l’a pris aujourd’hui. Ouvertesubmission triage
Difficulté 1/5 Moins d'une heure Accessibilité débutants 70/100
kausalflow/tools#386 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Bug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
-
issue(a11y): at 320 px wide, the EXPERIMENTAL badge breaks in the middle of the wordPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouvertebug confirmed issue
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
open-webui/open-webui#35507 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
beginner-friendly category:tests community enhancement first-timers-only good first issue help wanted low hanging fruit micro-contribution type: task up-for-grabs
Difficulté 1/5 Moins d'une heure Accessibilité débutants 95/100
Berserk-hub150/skillhawk#300 · 1 commentaire ·