Skip to Content
avatar image
Former Member

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

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:

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 13, 2015 at 10:59 AM


    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.


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      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?



  • Jan 13, 2015 at 09:13 AM

    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 ( you would have seen how to solve this error.

    Add comment
    10|10000 characters needed characters exceeded