cancel
Showing results for 
Search instead for 
Did you mean: 

Step 27:initMockServer.js: script load error

0 Kudos

Hi Michal,

After creating mockServer.html and initMockServer.js am getting above error , hence webpage responds blank.

please help me resolve it.

mockServer.html is

<!DOCTYPE html>

<html>

<head>

<title>SAPUI5 Walkthrough </title>

<script id="sap-ui-bootstrap"

src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"

data-sap-ui-theme="sap_belize"

data-sap-ui-resourceroots='{"MyApp.WebApp": "../" }'

data-sap-ui-oninit="module:MyApp.WebApp/test/initMockServer"

data-sap-ui-compatVersion="edge"

data-sap-ui-async="true" />

</head>

Accepted Solutions (0)

Answers (1)

Answers (1)

boghyon
Product and Topic Expert
Product and Topic Expert
0 Kudos
data-sap-ui-oninit="module:MyApp/WebApp/test/initMockServer"

When referring to modules, dots need to be replaced with slashes.

> In general, when addressing UI5 modules, make sure you separate all parts of the module's name with slashes instead of dots, for example myLib/MyModule instead of myLib.MyModule.

Source: Troubleshooting for Loading Modules