You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Currently the UI5 Tooling does not provide typescript transpilation out of the box. However, there are plenty of middlewares that could be used.
You can use, for example the ui5-tooling-transpile middleware/task
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 errorfailed to load 'mylibrary/library.js' from resources/mylibrary/library.js: script load error
Copying the the transpiled file from
dist/resources/mylibrary/library.js
tosrc/
results in the browser being able to load this specific file.Steps to Reproduce the Issue
yo easy-ui5
yo easy-ui5
sap.ui5
>dependencies
>libs
ui5 serve
in app directorylibrary.js
Context
ui5 --version
when using the CLI):4.0.0
20.11.0
10.2.4
macOS Sonoma 14.5
unknown
nothing
Log Output / Stack Trace
logoutput.txt
The text was updated successfully, but these errors were encountered: