cancel
Showing results for 
Search instead for 
Did you mean: 

BAS - JavaScript syntax errors are no longer being highlighted

robson_soares
Participant
0 Kudos
704

I'm working on a SAP Fiori Application -> SAPUI5 freestyle -> SAPUI5 Application project and I noticed that the JavaScript syntax errors are no longer being highlighted.

Note: I don't remember making any changes to the settings.

Any idea where I can fix it?

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

IanQuigley
Product and Topic Expert
Product and Topic Expert

Hi robson.soares ,

Thanks for your feedback. I can answer from the Fiori generator perspective:

> I followed the link steps. The first one displayed the message "The 'package.json' doesn't contain 'sapux'. This is required for SAP Fiori elements applications project(package-json-sapux)" in yellow.

That yellow flag is fine, it's a warning that the Fiori project is not compatible with Fiori elements. In this case, that makes sense, as it's a Fiori freestyle (not Fiori elements) application that is being inspected.

> My mains question is: when finishing the creation of a project, SAP BAS displays a message informing that all dependencies were created. Wouldn't the eslint dependency be created automatically? I ask because a while ago syntax errors were highlighted without having to install anything.

The Fiori generator does not add code assist libraries by default, the user needs to choose this option in the advanced settings in the generator, or else after the fact using the documentation above. The reason why it's not included by default is that there are extra libraries that need to be downloaded and installed, which will increase the footprint and install time of the generated application.

Regards - Ian

robson_soares
Participant
0 Kudos

Hi quiggs1000,

Thanks for your explanation!

Regards.

Answers (1)

Answers (1)

RazK
Product and Topic Expert
Product and Topic Expert

Hi robsonsoares ,

Did you check that eslint is installed as a dependency?

Javascript code assist can be added to a project during generation or for generated projects.

Regards - Raz

robson_soares
Participant
0 Kudos

Hi raz.korn,

Thanks for the answer.

I followed the link steps. The first one displayed the message "The 'package.json' doesn't contain 'sapux'. This is required for SAP Fiori elements applications project(package-json-sapux)" in yellow.

Regarding the second link, I followed the procedures, but other syntax errors were pointed out and also the code assistant did not reproduce the expected result, like the code completion, as shown in the example on the page.

My mains question is: when finishing the creation of a project, SAP BAS displays a message informing that all dependencies were created. Wouldn't the eslint dependency be created automatically? I ask because a while ago syntax errors were highlighted without having to install anything.