Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Shopping cart issue

Hi,

I was trying to build the shopping cart application from this video. I did exactly same as mentioned in the video. Created all the file ( component.js / common.js ) as mentioned. But when i try to run it as web app preview it doesn't work.

In chrome , developer tools i tried to check what is the error. Here is a screen shot of what i get.

"Uncaught Error: failed to load 'sap/demo/cart/Component.js' from ./Component.js: SyntaxError: Unexpected identifier"

Here is how my index.html looks like

Here is how my component.js looks like

I have also created an empty Component-preload.js file. I also tried to check the comments mentioned is some other posts like the SAPUI5 version ( 1.30.9 ) . I am using eclipse luna .I hope that it doesn't have anything to do with Luna. I have even tried this link on scn

sapui5 demo app (shopping cart) not working in local environment

But i am not able to run the shopping cart. Can someone help me with what can be the problem ? I have attached my index.htm and component.js files.

Thanks in advance

Best regards

Sanket

index.txt.zip (582 B)

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question