Skip to Content
0

Unexpected identifier loading js view

Mar 10, 2017 at 10:51 AM

128

avatar image

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 ?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

garreth kelly Mar 10, 2017 at 02:04 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Gregory Kampouroglou Feb 16 at 11:40 AM
0

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 :-)

Share
10 |10000 characters needed characters left characters exceeded