DamonOehlman / detect-browser

Unpack a browser type and version from the useragent string

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tsconfig.json: Syntax Error

jerroydmoore opened this issue · comments

I'm using this package with gatbsyJS. Ever since adding this package to my project, the following syntax error reported:

 WAIT  Compiling...                                                                                                                                                11:26:27 AM

 WARNING  Compiled with 1 warnings                                                                                                                                 11:26:28 AM

 warning  in ./~/detect-browser/tsconfig.json

Syntax Error: Unexpected token } in JSON at position 212
    at JSON.parse (<anonymous>)


 @ ./~/detect-browser ^\.\/.*$

@jerroydmoore thanks for the report - I'll take a look as soon as I can. Guess it's a good time to checkout Gatsby.

I think it's simply the hanging comma on line 10 is a syntax error for JSON files (even though its legal in JS files)

Sweet, that's an easy fix. Will fix and publish a patch version.

@jerroydmoore Done. 4.0.4 published.