2
votes

Is it possible to build a chrome app of openui5 application. I'm trying to do it but getting following errors while loading openui5 resources.

Uncaught Error: found in negative cache: 'sap/ui/core/Core.js' from undefined/sap/ui/core/Core.js: Error: found in negative cache: 'jquery.sap.events.js' from undefined/jquery.sap.events.js: Error: failed to load 'sap/ui/thirdparty/jquery-mobile-custom.js' from resources/sap/ui/thirdparty/jquery-mobile-custom.js: 0 - InvalidAccessError: Failed to execute 'open' on 'XMLHttpRequest': Synchronous requests are disabled for this page.

1
I am sorry, but this error message is not very helpfull on ist own. Could you please do: a) Post your root .html file b) Answer: Do you try to open your app directly from the local filesystem? - SDD64
I agree that you should provide more context so that we can help you better :) - kazandzhiro

1 Answers

0
votes

No, currently it's not possible to build a Chrome app with a standard UI5 library. UI5 uses synchronous XHRs which Chrome platform has turned off completely (thus the error message) due to the bad UX.

The UI5 team is working on removing sync XHRs.

Deprecation of Sync XHR: Introduce async alternatives to address risk of Google Chrome changes. (Source)