-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library Including Components #70
Comments
Hi @BUPA, please have a look into this documentation: https://ui5.sap.com/#/topic/8521ad1955f340f9a6207d615c88d7fd (chapter "Dependencies to Components" - Scenario 1: UI library contains multiple components) You should first require the library before requiring any of its components. |
Hey @RandomByte, thx for your feedback. I already did this - I assume it would work if the generated library-preload wouldn't contain errors. BR, |
Is this still open? |
@BUPA: You're using a preload file created with Evo-tooling and using Evo-APIs on a pre-Evo UI5 version (1.52). That's not supported. The ui5-tooling creates output only for newer runtime versions of UI5. |
Tbh I did not care much about versions up to now. I created a Library from webIDE Library template (for 1.52) and built a freestyle app on 1.52 consuming it. |
@BUPA could you please confirm that this issue does not occur with current versions of UI5? As stated by @codeworrior this should not be an issue anymore. |
Hey. I'm sorry - I missed on this one. |
Expected Behavior
When building a library containing components there should be component-preloads for each component included in the library-preload.
Current Behavior
When building the library a library-preload is generated including the content of the included components.
When interpreting the library-preload n Error occures (See log section).
Subsequent to this error at runtime of the consuming application the framework tries to get the component's-preload. As this fails the framework is requesting the single source files (as it would be without a build).
Steps to reproduce the issue
Good description at Nabi's blog:
https://www.nabisoft.com/tutorials/sapui5/implementing-re-use-components-in-sapui5-libraries-and-consuming-them-in-sapui5-apps
At the moment I only have a example for this in our company namespace which I am not allowed to share. In case this would be necessary I could build a example on github for this.
Context
Affected components
Stack trace/log output
When starting consuming application I encounter a error with the generated library preload:
Find the generated Library-Preload here:
Consuming Application requests component-preload for Compnent WorkcenterInput from:
@bendkt : Marker for you as we discussed this topic at TechEd. In case of analysis by official SAP I could provide our applications directly. If necessary I can create a public version.
The text was updated successfully, but these errors were encountered: