Added empty Component-preload.js to avoid 404 in console#4
Added empty Component-preload.js to avoid 404 in console#4toxvaerd wants to merge 1 commit intoqmacro:masterfrom toxvaerd:master
Conversation
|
Just thought I'd add my 2cents worth since you mentioned my old scn thread. ;-) |
|
Ok, thanks 😃 It wasn't obvious from the thread wether or not the error would be fixed in an upcoming version, but I would argue that either way the empty Component-preload file should be in the template, to avoid confusion for the user(developer). If the error is fixed in an upcoming version of openUI5 the empty file can be removed then. |
|
Have you tried the preload=auto query string parameter as mentioned in that scn thread? |
|
I have, but that doesn't fix the problem for me 😞 |
|
Must be version dependant. Personally I'm just waiting for the openui5 sources to be released. ;-) |
In openUI 1.18.8 I'm experiencing a 404 error in the console using the templates:
GET <project_url>/Component-preload.js 404 (Not Found) sap-ui-core.js:25
This error is discussed here: http://scn.sap.com/thread/3486179
I've added an empty Component-preload.js file to each project, and that seems to stop the errors from showing. I'm not sure if this is the right approach though.