Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3189

met a problem with tutorial code

$
0
0

Followed code is from tutorial step 3

OpenUI5 SDK - Demo Kit

 

<!DOCTYPE html>
<html>
  
<head>
  
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  
<meta charset="UTF-8">
  
<title>Walkthrough</title>
  
<script
  id
="sap-ui-bootstrap"
  src
="/resources/sap-ui-core.js"
  data
-sap-ui-theme="sap_bluecrystal"
  data
-sap-ui-libs="sap.m"
  data
-sap-ui-compatVersion="edge"
  data
-sap-ui-preload="async">
  
</script>
  
<script>
  sap
.ui.getCore().attachInit(function(){
   new sap.m.Text({
  text
:"Hello World"
  
}).placeAt("content");

  
});
  
</script>
  
</head>
   <body class="sapUiBody" id="content">
  
</body>

</html>



Then I get some errors:

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 http://localhost:8080/resources/sap/ui/thirdparty/jquery-mobile-custom.js: 404 - Not Found

localhost/:16 Uncaught TypeError: sap.ui.getCore is not a function

 

I am sure that the path of src is correct coz I ran it sucessfully on another desktop, but after I copy the project to this desktop, it has the above problem. And then I re-download the UI5 runtime from SAP website and it works now.

But I am still curious about the reason of the problem.


Viewing all articles
Browse latest Browse all 3189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>