WARNING: Invalid character encountered in file {{file}}.js at line 2799

If there are any special characters that are not on the keyboard then we are getting the following issue.

Please suggest to me how to get rid of this.
WARNING: Invalid character encountered in file {{file}}.js at line 2799

Hi Chandramouli,

As a reminder, please share the must-have information when posting for help here:

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

Make sure you share the SonarJS plugin version, the SonarQube version and the full analysis log in debug mode. Also, you should share the content of this file in line 2799. This way myself or someone else in the community may be able to help you.

Regards,
Daniel