Skip to Content
avatar image
Former Member

which version of javascript supported in sapui5

which version of javascript is supported in sapui5?

Why am I not able to use "let" keyword in sapui5?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Mar 05 at 12:12 PM

    Hi,

    As for the console error, you need to right click the js file or the project folder and go to "project settings" and then look at the attached image - project-settings.png.

    As for the "let" keyword in that same place, under "Validator Configuration" you need to add to "env" the following - "es6": true - see attached image project-settings2.png.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 23 at 04:58 AM

    Hi Shweta,

    Where exactly are you getting the error in using the let keyword ?

    Are you using an older browser version ?

    I am successfully able to use it using Web IDE.

    Thanks,

    Vaibhav

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 05 at 04:51 AM

    screenshot.png

    Its working. But my controller is red marked and complaining that this keyword is reserved for the future uses. I am using google chrome latest version - Version 64.0.3282.186 (Official Build) (64-bit) as far as I know. Even usually if I use console.error or log I get red mark while I can see you get only warning.

    Thanks,

    Shweta

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 06 at 09:16 AM

    screenshot-12.png

    Thank you, It worked for me , but I am noticing the red mark on file name. Can we get it removed. I have attached the file.

    Add comment
    10|10000 characters needed characters exceeded