# Parse Error in javascript files

**URL:** <https://community.sonarsource.com/t/parse-error-in-javascript-files/6657>\
**Category:** SonarQube Cloud\
**Tags:** sonarjs\
**Created:** [February 8, 2019, 3:00pm UTC](https://community.sonarsource.com/t/parse-error-in-javascript-files/6657 "2019-02-08T15:00:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlostekk](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@mlostekk](https://community.sonarsource.com/u/mlostekk)\
**Post date:** [February 8, 2019, 3:00pm UTC](https://community.sonarsource.com/t/parse-error-in-javascript-files/6657/1 "2019-02-08T15:00:40Z")

</div>

I am getting this strange errors from the sonar scanner in some js files

```
ERROR: Unable to parse file: file:///Users/mlostek/Projects/Skoove/skoove_IOs/ios_app/components/CircleImage.js
ERROR: Parse error at line 19 column 34:

 9:
10: isOnTablet ? (
11: imageStyle = [...imageStyle, styles.image_tablet]
12: ) : (
13: imageStyle = [...imageStyle, styles.image_phone]
14: );
15:
16: return (
17:
18: props.onlyImage
19: ? ()
                                     ^
20: : (
21:         
22:           
23:         
24: )
25:
26:
27: );
28: };
29:

```

Whats wrong with this line?  
Why is the scanner not able to scan that file?  
And Is it possible to show the “unchecked” files somehow in sonarcloud?

---

<div class="post-metadata">

**Author:** ![saberduck](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/saberduck/32/27_2.png) [@saberduck](https://community.sonarsource.com/u/saberduck)\
**Post date:** [February 11, 2019, 8:41pm UTC](https://community.sonarsource.com/t/parse-error-in-javascript-files/6657/3 "2019-02-11T20:41:55Z")

</div>

hello @mlostekk ,

I am not sure if the formatting is correct, there seems to be a lot of whitespace. Can you share the original file? (you can do that also privately, if sharing publicly is not an option)
