cancel
Showing results for 
Search instead for 
Did you mean: 

which version of javascript supported in sapui5

0 Kudos

which version of javascript is supported in sapui5?

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

Accepted Solutions (1)

Accepted Solutions (1)

iftah_peretz
Active Contributor

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.

Answers (3)

Answers (3)

0 Kudos

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.

0 Kudos

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

mvaibhav
Contributor
0 Kudos

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