cancel
Showing results for 
Search instead for 
Did you mean: 

Parsing Error in New SAP Cloud Platform Business Application using SAP HANA Express on-premise

arazumov101
Explorer
0 Kudos
802

Hello,

When I try to create a new project with last version of SAP HANA Express 2.0 SPS 04 on local PC using SAP Cloud Platform Business Application template the system return ESLint Syntax Error message in build.js file:

ESLint: (syntax-parse) Parsing Error: The keyword ‘const’ is reserved.

To fix the issue I have added "es6": true to the project settings Validator Configuration but it did not work.

I appreciate any direction you can provide.

Thank you,

Andrew

Accepted Solutions (0)

Answers (1)

Answers (1)

Abhinav_Sharma
Contributor

Hi Andrew,

You can try with adding below lines in .build.js file. It worked for me

/* eslint-env es6 */

/* eslint-disable no-console */

Regards

Abhi

arazumov101
Explorer
0 Kudos

Hi Abhi,

It works!

Thank you so much.

All the best,

Andrew

Abhinav_Sharma
Contributor
0 Kudos

Hi Andrew,

Glad it helps. You may accept the answer and close the thread. 🙂

Regards

Abhi