on 05-12-2015 3:39 AM
I tried to have this demo app Shopping Cart working in my local eclipse environment, here's my eclipse project (Dropbox - cart.zip) with all the demo app source file in it, the only thing I changed was to change the sap-ui-core.js reference link, when I ran it, I got
Uncaught Error: failed to load 'sap/ui/demo/cart/Component.js' from ./Component.js: Error: failed to load 'sap/m/routing/Router.js' from resources/sap/m/routing/Router.js: 404 - Not Found
Could any one please kindly let me know if there's anything else I 'll need to change in order to make it to work? Thanks
Hi Tylr,
You are missing Router.js file.
Also change the path in return UIComponent.extend("sap.ui.demo.cart.Component"
to UICompoent.extend("cart.cart.Component")
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Kedar, thank you so much for your reply.
I thought the Router.js is delivered by the framework (sap/m/routing/Router.js), I didn't find it in the demo application.
And after I changed UIComponent.extend from cart.cart.Component as you suggested, but still, I'm getting failed to load 'sap/ui/demo/cart/Component.js' from ./Component.js
Thank you so much Joao, turned out the root cause was with my local SAPUI5 core library version, in the index.html file bootstrap, instead of using the local lib, I replaced it with https://openui5.hana.ondemand.com/resources/sap-ui-core.js
everything works after that
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.