on ‎2017 Mar 10 10:51 AM
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 ?
Request clarification before answering.
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 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.