cancel
Showing results for 
Search instead for 
Did you mean: 

created a sap ui5 application and occurred error that is 'sap is not define'.

Former Member
0 Kudos

When I created a sap ui5 application,occurred a error in controller.js and view.js that is 'sap is not define',pls someone could help me solve this problem,

thanks and appreciate very much !The detail as below:

Accepted Solutions (1)

Accepted Solutions (1)

former_member195440
Participant
0 Kudos

Hi,

Have you looked at the URL mentioned in each of the errors in your web-browser? For example, the first error message is explained here ESLint with examples of how to resolve it.

Linting generally only checks one file at a time, so references to other files/libraries etc. are considered global in this case. This is why it is complaining about the "sap" reference.

Let us know if you get stuck.

Oli

Former Member
0 Kudos

Hi Oli

Thanks for your reply.

Everything is ok,because I found that my libraries were imperfect,so I changed my eclipse and installed new software again.

Best&regards

tymon

former_member196942
Participant
0 Kudos

Hi Hao,

I am facing the same issue, and I need to use the same eclipse that is pre-configured with all plug-ins including ui5 and git. Please help

Former Member
0 Kudos

hi Jha,

You can click this link as follow to download eclipse.

http://archive.eclipse.org/technology/epp/downloads/release/kepler/R/eclipse-jee-kepler-R-win32-x86_...

I wish I can help you !

Tymon

Former Member
0 Kudos

Hi,

I am getting this error in my project also. I have downloaded the new eclipse from this link. But, when i upload the project to Git, I am getting ESLint error for Util file.

Can anyone tell me how to fix this?

Regards,

Soumya

Answers (1)

Answers (1)

Qualiture
Active Contributor
0 Kudos

First of all, if you don't know how to handle Lint problems, I would suggest learning Javascript first before diving into SAPUI5.

Secondly, the resolution to your problem is right there in the problem. If you had taken the time to go to the URL provided (http://eslint.org/docs/rules/no-undef) you would have seen how to solve this error.