cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unexpected identifier loading js view

garreth_kelly
Explorer
0 Likes
1,553

I am running example chapter-4\app-simple-one-page-view

from sapui5 the comprehensive guide

https://s3-eu-west-1.amazonaws.com/gxmedia.galileo-press.de/supplements/3980/978-1-4932-1320-7.zip

When i load it i just get

Uncaught Error: failed to load 'sapui5/demo/mvcapp/view/Master.view.js' from ./webapp/view/Master.view.js: SyntaxError: Unexpected identifier at a1 (sap-ui-core.js:80) at Object.jQuery.sap.require (sap-ui-core.js:80) at d.J.initViewSettings (JSView.js:6) at d.V._initCompositeSupport (View.js:6) at d.constructor (sap-ui-core.js:144) at d.constructor (sap-ui-core.js:144) at d.constructor (sap-ui-core.js:144) at d.f [as constructor] (sap-ui-core.js:144) at new f (sap-ui-core.js:144) at new o (sap-ui-core.js:135)

any idea why this would happen ?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

Studying the book, ran to the exactly same problem. Solution looks a little contradictory comparing to the practices that book suggests but at least I know that the problem isn't only mine, thanks 🙂

garreth_kelly
Explorer
0 Likes

moved controller and view folders to the root folder

removed the folder webapp

changed the resources root to data-sap-ui-resourceroots='{"sapui5.demo.mvcapp": "./"}

and it worked