cancel
Showing results for 
Search instead for 
Did you mean: 

Error: failed to load 'sap/m/label.js'

former_member499177
Participant
0 Kudos

Hello experts.

This is really strange. I have developed an app using SAP Web IDE Personal edition. Application works fine. Deployed it on my ABAP backend, everything OK, same thing when I deployed it on my QAS system. So far so good.

Deployed the application on SAP Web IDE Full-stack on the Cloud. Configured Cloud Connector, set up destinations in SCP and ran the application from there. Everything OK with the main screen (lots of components, among them a table). As soon as I clicked on one of the rows to navigate to my detailed view, app crashed reporting a 404 error for file sap/m/label.js. Changed bootstrapping, replacing the reference to my libraries with a reference to the Cloud Platform ones (https://sapui5.hana.ondemand.com/resources/sap-ui-core.js). Got the same error, along with a "No 'Access-Control-Allow-Origin' header is present on the requested resource" (according to my poor knowledge shouldn't see it when running Chrome with no security options but whatever). In a few words, my app seems to have an issue with sap/m/label.js, no matter which kind of bootstrapping I use, while in my local environment (1.44.31) everything works fine. Any idea where I should look?


Regards,

Greg

Exception attached below:

Uncaught (in promise) Error: failed to load 'sap/m/label.js' from ../resources/sap/m/label.js: 404 - Not Found at p1 (jquery.sap.global-dbg.js:3274) at Object.q.sap.require (jquery.sap.global-dbg.js:3840) at f (eval at evalModuleStr (jquery.sap.global-dbg.js:3315), :572:1949) at k (eval at evalModuleStr (jquery.sap.global-dbg.js:3315), :572:2798) at h (eval at evalModuleStr (jquery.sap.global-dbg.js:3315), :572:2754) at g (eval at evalModuleStr (jquery.sap.global-dbg.js:3315), :572:2497) at Q (eval at evalModuleStr (jquery.sap.global-dbg.js:3315), :572:5485) at P (eval at evalModuleStr (jquery.sap.global-dbg.js:3315), :572:5101) at k (eval at evalModuleStr (jquery.sap.global-dbg.js:3315), :572:6172) at h (eval at evalModuleStr (jquery.sap.global-dbg.js:3315), :572:2754)

Accepted Solutions (1)

Accepted Solutions (1)

former_member499177
Participant
0 Kudos

Solution found, there was a forgotten <label...>, it now works. What's not answered is how the same code is running in the other 2 environents as is but I suppose this belongs to another thread...

Answers (0)