# JS files facing issue in sonarqube scan

**URL:** <https://community.sonarsource.com/t/js-files-facing-issue-in-sonarqube-scan/108953>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube\
**Created:** [February 9, 2024, 3:34pm UTC](https://community.sonarsource.com/t/js-files-facing-issue-in-sonarqube-scan/108953 "2024-02-09T15:34:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepika.singh](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@deepika.singh](https://community.sonarsource.com/u/deepika.singh)\
**Post date:** [February 9, 2024, 3:34pm UTC](https://community.sonarsource.com/t/js-files-facing-issue-in-sonarqube-scan/108953/1 "2024-02-09T15:34:13Z")

</div>

sonarqube-9.9.3  
Sonarqube scanner 2.13.1 is used

sonarqube is deployed on EC2 instance

I am trying to scan JS files some are passing but getting below error

for other how to fix this

Task :sonarqube

Failed to parse file [Setup/Archive\_MissingXmlFiles/Range.TopRunnerLinks.Delete.js] at line 77: Unexpected token, expected “(” (77:6) Failed to parse file [JS-Business Rules/Workflows/WF\_CR\_VALIDATION.majorUpdate.js] at line 70: Unexpected token, expected “(” (70:12) Failed to parse file [Setup/Archive\_MissingXmlFiles/PIM\_WF\_TARGET\_EXPORT.prepareExportConfig.js] at line 41: Unexpected token, expected “(” (41:8) Failed to parse file [JS-Business Rules/Workflows/WF\_LOCAL\_PUBLISH.checkOnStart.js] at line 96: Unexpected token, expected “(” (96:8) Failed to parse file [JS-Business Rules/Workflows/WF\_CR\_CONTRIB.initialSwitch.js] at line 43: Unexpected token, expected “(” (43:8) Failed to parse file [JS-Business Rules/Workflows/WF\_RNG\_MOD\_VALIDATE\_LOCAL.initialSwitch.js] at line 23: Unexpected token, expected “(” (23:10)

Failed to parse file [JS-Business Rules/Buttons/Scope.Delete.js] at line 29: Unexpected token, expected “(” (29:16) Failed to parse file [JS-Business Rules/Buttons/CR.sendToUpdLifecycleDataScreen.js] at line 61: Unexpected token, expected “(” (61:20) Failed to parse file [JS-Business Rules/Workflows/WF\_WEBECATALOG\_VALIDATION.majorUpdate.js] at line 24: Unexpected token, expected “(” (24:8)

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [February 12, 2024, 10:13am UTC](https://community.sonarsource.com/t/js-files-facing-issue-in-sonarqube-scan/108953/2 "2024-02-12T10:13:21Z")

</div>

Hey there.

Can you share one of these files that fails to parse?
